Reverse lists in Python

Reverse lists

>>> myList=['a','b','c','d']
>>> myList.reverse()
>>> myList
['d', 'c', 'b', 'a']

See also


Last update : 06/11/2018