py range reverse code example
Example 1: reversed(range
>>> type(range(3))
<class 'range'>
Example 2: reverse for loop in python
for i in range(10, -6, -2):
print(i)
>>> type(range(3))
<class 'range'>
for i in range(10, -6, -2):
print(i)