Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def reverse(l):
- #@param l: list
- i = 0
- upos = len(l)-1 #ultima posizione della lista
- while(i<upos-i):
- l[i],l[upos-i] = l[upos-i], l[i]
- i+=1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement