Advertisement
Guest User

Untitled

a guest
Mar 18th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.22 KB | None | 0 0
  1. def reverser (stringa):
  2.     indice = (len(stringa) -1)
  3.     nuova_stringa = ""
  4.     while indice >= 0:
  5.         nuova_stringa += stringa[indice]
  6.         indice -= 1
  7.     print(nuova_stringa)
  8.  
  9. ciao = "ciao"
  10. reverser(ciao)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement