Answers for "python how to print in reverse order"

28

reverse string in python

'hello world'[::-1]
'dlrow olleh'
Posted by: Guest on December-06-2019
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
8

reverse list python

list=[1,2,3]
list[::-1]
Posted by: Guest on May-08-2020

Code answers related to "python how to print in reverse order"

Python Answers by Framework

Browse Popular Code Answers by Language