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.

reverse order of list using list.reverse
1.List reverse in Python

 

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

By SC

One thought on “List.Reverse”

Leave a Reply

Your email address will not be published. Required fields are marked *