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