how to get get reverse element of list in loop python code example
Example: how to reverse a list in python using for loop
a = ['a', 'b', '4', '5', 'd'] #reverse the List
for i in reversed(a):
print(i)
a = ['a', 'b', '4', '5', 'd'] #reverse the List
for i in reversed(a):
print(i)