The reverse() method enables the reversing the order of the list elements:
>>> random_list = [8, 7, 5, 2, 2, 5, 7, 5, 6, 4]
>>> random_list.reverse()
>>> random_list
[4, 6, 5, 7, 5, 2, 2, 5, 7, 8]
The reverse() method enables the reversing the order of the list elements:
>>> random_list = [8, 7, 5, 2, 2, 5, 7, 5, 6, 4]
>>> random_list.reverse()
>>> random_list
[4, 6, 5, 7, 5, 2, 2, 5, 7, 8]