for loop with function python code example
Example 1: python for loop
words=['zero','one','two']
for operator, word in enumerate(words):
print(word, operator)
Example 2: how to do a for loop python
print(range(4))
>>> [0,1,2,3]
print(range(1,4))
>>> [1,2,3]
print(range(2,10,2))
>>> [2,4,6,8]