1#x starts at 1 and goes up to 80 @ intervals of 2
2for x in range(1, 80, 2):
3 print(x)
1Python Loops
2
3for x in range(1, 80, 2):
4 print(x)
5
6words=['zero','one','two']
7for operator, word in enumerate(words):
8 print(word, operator)
9
10for x in range(1, 80, 2):
11 print(x)
12
13
14
15
16
1
2data = [34,56,78,23]
3sum = 0
4# for loop is to iterate and do same operation again an again
5# "in" is identity operator which is used to check weather data is present or not
6for i in data:
7 sum +=i
8
9print(sum)
10
11
12