Answers for "how to reverse order of list in pythopn"

1

reverse a list in python

a = ['a', 'b', '4', '5', 'd'] #reverse the List
print(list(reversed(a)))
Posted by: Guest on December-21-2020

Code answers related to "how to reverse order of list in pythopn"

Python Answers by Framework

Browse Popular Code Answers by Language