python define range in the for code example
Example 1: for i in range python
#coding: utf-8
for item in range(10):
print(item)
Example 2: range in python
for i in range (start, step, stop):
dosomething()
#coding: utf-8
for item in range(10):
print(item)
for i in range (start, step, stop):
dosomething()