You are here : python_3Built-in Functionsreversed

reversed() - Built-in Functions

Return a reverse iterator.  seq must be an object which has
a __reversed__() method or supports the sequence protocol (the
__len__() method and the __getitem__() method with integer
arguments starting at 0).


Syntax

reversed(seq)


Example


Output / Return Value


Limitations


Alternatives / See Also


Reference