for loop in a function python code example
Example 1: python for loop
for x in range(10):
print(x)
Example 2: python for loop
words=['zero','one','two']
for operator, word in enumerate(words):
print(word, operator)
Example 3: how to make a loop in python
x = 0
while True: #execute forever
x = x + 1
print(x)