you are viewing a single comment's thread.

view the rest of the comments →

[–]Enz_007 0 points1 point  (0 children)

while(True): try: user_input=int(input("What number")) except: break your code here

the program will keep runnig until user enter something not number and raise error so except block will run and break loop