for loop i++ in python code example
Example 1: for loop from n to 1 in python
range(10, 0, -1)
Example 2: python for loop with increment
lis = [1, 2, 3, 4, 5]
for i in range(len(lis)):
print(lis[i])
i+=1
range(10, 0, -1)
lis = [1, 2, 3, 4, 5]
for i in range(len(lis)):
print(lis[i])
i+=1