python reverse example
Example 1: python reverse list
list.reverse()
Example 2: reverse a list in python
a = ['a', 'b', '4', '5', 'd'] #reverse the List
print(list(reversed(a)))
list.reverse()
a = ['a', 'b', '4', '5', 'd'] #reverse the List
print(list(reversed(a)))