language: Python 3 (python-3.2.3)
date: 588 days 6 hours ago
link:
visibility: private
1
2
3
4
5
6
7
8
9
10
def reverse(lst):
    n = len(lst)
    for i in range(n//2):
        lst[i], lst[n-1-i] = lst[n-1-i], lst[i]
 
L = list(range(10))
print(L)
reverse(L)
print(L)