The reversed() method returns the iterator that accesses the given sequence in the reverse order.

Python reversed()

Python reversed() is an inbuilt function that returns an  iterator that accesses the given sequence in the reverse order. The iter() function returns an iterator object. The  list.reverse() method reverses a List.

Syntax

reversed(seq)

#python #python reversed

Python reversed: How to Use reversed() Method in Python
2.55 GEEK