Answers for "print list reverse python without reverse function"

1

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

Code answers related to "print list reverse python without reverse function"

Python Answers by Framework

Browse Popular Code Answers by Language