Comment retourner une liste vers l'arrière dans Python
myList = [0,1,2,3,4,5]
myList.reverse()
print(myList)
#OR
print(myList[::-1])
Coding Lemons
myList = [0,1,2,3,4,5]
myList.reverse()
print(myList)
#OR
print(myList[::-1])
>>> array=[0,10,20,40]
>>> for i in reversed(array):
... print(i)