It is used for reverse the order of element in list in python.
Example of List.Reverse in Python:
As shown in example below a is list. we have performed reverse method on list by writing a.reverse() and in output you can see it has reversed all the elements present in list.
List.reverse function returns none in python.As shown in above example as we can see after performing a.reverse function when we accessed list a.All elements is reversed
[…] List.Reverse: To reverse the order of a […]