how to print tuple in reverse order in python

Solutions on MaxInterview for how to print tuple in reverse order in python by the best coders in the world

showing results for - "how to print tuple in reverse order in python"
Larissa
14 Aug 2019
1languages = ('C++', 'Python', 'Scratch')
2#Method1:
3languages = tuple(reversed(languages))
4print(languages)
5#Method2:
6lang = languages[::-1]
7print(lang)