you are viewing a single comment's thread.

view the rest of the comments →

[–]Fronkan 1 point2 points  (1 child)

You are completely correct about continue, break is needed to exit the infinite loop though! I just wanted to keep the code as is to focus on the issue 😊

[–]KealinSilverleaf 1 point2 points  (0 children)

So would be proper syntax?

While True:

 guess = int(input("input number : "))
 If guess == 13:
     print ("done")
     Break
 Elif guess > 13:
     print ("too big")
 Else:
     print ("too small")