Answers for "write a program to print the list elements in reverse order"

2

print list in reverse order python

languages = ['C++', 'Python', 'Scratch']
#Method1:
languages.reverse()
print(languages)
#Method2:
lang = languages[::-1]
print(lang)
Posted by: Guest on January-24-2021
0

print python reverse list

for i in range(len(collection)-1, -1, -1):
    print collection[i]

    # print(collection[i]) for python 3. +
Posted by: Guest on December-12-2021

Code answers related to "write a program to print the list elements in reverse order"

Python Answers by Framework

Browse Popular Code Answers by Language