Articles → Python → Reversed Function In PythonReversed Function In PythonIn this article, we will discuss the reversed function in Python.Purpose The reversed function returns the sequence (list or tuple) in reverse order.Example s = "right" print("Sorted string in reverse order", list(reversed(s)))Output Posted By - Karan Gupta Posted On - Thursday, May 9, 2019 Query/Feedback Your Email Id** Subject* Query/Feedback Characters remaining 250**
s = "right" print("Sorted string in reverse order", list(reversed(s)))
Query/Feedback