Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

print list in reverse order python

languages = ['C++', 'Python', 'Scratch']
#Method1:
languages.reverse()
print(languages)
#Method2:
lang = languages[::-1]
print(lang)
Source by dbader.org #
 
PREVIOUS NEXT
Tagged: #print #list #reverse #order #python
ADD COMMENT
Topic
Name
9+4 =