April 2017
Beginner to intermediate
312 pages
7h 23m
English
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]
Read now
Unlock full access