- Variable random_num = randint(1,10)
- Program chooses the random number between 1 and 10
- Store the random number in a variable named random_num
- Enter "Enter guess number 1:"
- Guess number 1 into variable guess_1
- Compare guess_1 = random_num
- If true, print "Congratulations, you guessed the number"s
- If false, Enter "Enter guess number 2:"
- Guess number 2 into variable guess_2
- Compare guess_2 = random_num
- If true, print "Congratulations, you guessed the number"s
- If false, Enter "Enter guess number 3:"
- Guess number 3 into variable guess_2
- Compare guess_3 = random_num
- If true, print "Congratulations, you guessed the number"
- If false, print "You are out of guesses"
- End loop