Home >>Python List Methods >Python List reverse() Method
Python list reverse() method is used to reverse the sorting order of the elements in the given input list.
Syntax:list.reverse()Here is an example of Python reverse() method:
a = ['Abhi', 'Mike', 'Jerry']
a.reverse()
print(a)
a = ['PHP', 'Python']
a.reverse()
print(a)