for i in range( code example
Example 1: for i in range python
#coding: utf-8
for item in range(10):
print(item)
Example 2: for loop from n to 1 in python
range(10, 0, -1)
#coding: utf-8
for item in range(10):
print(item)
range(10, 0, -1)