python loop eg code example
Example 1: for loop python
Python Loops
for x in range(1, 80, 2):
print(x)
words=['zero','one','two']
for operator, word in enumerate(words):
print(word, operator)
for x in range(1, 80, 2):
print(x)
Example 2: python loop program
digits = [0, 1, 5]
for i in digits:
print(i)
else:
print("No items left.")