python revers a list code example
Example 1: python reverse list
list.reverse()
Example 2: print list in reverse order python
languages = ['C++', 'Python', 'Scratch']
#Method1:
languages.reverse()
print(languages)
#Method2:
lang = languages[::-1]
print(lang)