Reverse a list in python is very simple in a pythonic way.

Q:- [1,2,3,4,5]

A-: [5,4,3,2,1]

Just in python you can do it in one line of code.

>> myList = [1,2,3,4,5]
>>> myList[::-1]
[5, 4, 3, 2, 1]

If you want to learn python list then click here.

Follow us on FB  to get more updates.