3 Iteration (looping)

For loop

1
2
for x in range(10):
    print(x)

The While loop

1
2
3
4
5
6
7
8
9
10
print ("Number guess")

guess=0

while guess!=5:
    guess=int(input("Guess the number "))
    if guess!=5:
       
        print("Try again")
print ("Yes Well done!")