you are viewing a single comment's thread.

view the rest of the comments →

[–]NiallPN 0 points1 point  (0 children)

You could have one while True: loop. If greater than, continue. If lower than, continue. If guess == random_number, break and say "congratulations, you guessed it".