Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #reverse #list #python #loop
ADD COMMENT
Topic
Name
1+6 =