how to set a range onto a for loop in python code example
Example 1: Range python iterate by 2
for i in range(0,10,2):
print(i)
Example 2: python range from n to 0
range(N, -1, -1) is better
for i in range(0,10,2):
print(i)
range(N, -1, -1) is better