how to start for loop in python from 1 code example
Example 1: for loop python start at 1
# starts at 1 up to, but not including, 5
for i in range(1, 5)
print(i)
Example 2: python for loop with step
for i in xrange(0,10,2):
print(i)
# starts at 1 up to, but not including, 5
for i in range(1, 5)
print(i)
for i in xrange(0,10,2):
print(i)