string reverse in range function code example Example: reversed(range >>> type(range(3)) <class 'range'>