python for llop code example
Example 1: python for loop
a = 10
for i in range(1, 10) # the code will move from the range from 1 to 10 but not including 10
print(i)
Example 2: python for loop
for i in range(5, 9):
print(i)
Example 3: python for loop
words=['zero','one','two']
for operator, word in enumerate(words):
print(word, operator)