range(100,-1,-1)
# Basic syntax:
range(start, stop, -1) # or:
reversed(range(stop))
# Note, the stop value is not inclusive with range()
# Example usage:
for i in range(5, 0, -1):
print(i)
# prints:
5
4
3
2
1
# welcome to softhunt.net
# decremented by 4
print('decremented by 4: ')
for i in range(15, 2, -4):
print(i, end=" ")
print()
# decremented by 3
print('decremented by 3: ')
for i in range(15, 2, -3):
print(i, end=" ")
print()
# decremented by 2
print('decremented by 2: ')
for i in range(15, 2, -2):
print(i, end=" ")
print()