what is a for statement python code example
Example 1: python for loop
for i in range(3):
print(i)
#prints: 0,1,2
Example 2: python for loop
words=['zero','one','two']
for operator, word in enumerate(words):
print(word, operator)
for i in range(3):
print(i)
#prints: 0,1,2
words=['zero','one','two']
for operator, word in enumerate(words):
print(word, operator)