write a for loop in python 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 for loop
for i in data: #where data is your list or tuple
print(i) #printing the values in data iteratively!