for loop syntax python range code example
Example 1: python for loop range
for i in range(0, 3):
print(i)
Example 2: python for loop range
#Python range() example
print("Numbers from range 0 to 6")
for i in range(6):
print(i, end=', ')
for i in range(0, 3):
print(i)
#Python range() example
print("Numbers from range 0 to 6")
for i in range(6):
print(i, end=', ')