1#x starts at 1 and goes up to 80 @ intervals of 2
2for x in range(1, 80, 2):
3 print(x)
1#While Loop:
2while ("condition that if true the loop continues"):
3 #Do whatever you want here
4else: #If the while loop reaches the end do the things inside here
5 #Do whatever you want here
6
7#For Loop:
8for x in range("how many times you want to run"):
9 #Do whatever you want here
1print(range(4))
2>>> [0,1,2,3]
3print(range(1,4))
4>>> [1,2,3]
5print(range(2,10,2))
6>>> [2,4,6,8]
7