Python reversed() Function

The reversed() in Python returns a reverse iterator.

Syntax

Parameter

seq: This parameter represents any iterable object.

Return

This function returns a reversed iterator object.

Example 1

Output