Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def reverser (stringa):
- indice = (len(stringa) -1)
- nuova_stringa = ""
- while indice >= 0:
- nuova_stringa += stringa[indice]
- indice -= 1
- print(nuova_stringa)
- ciao = "ciao"
- reverser(ciao)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement