while True: try: wd = int(input('How wide would you like your letter to be? (5 - 20)' + ': ')) break except ValueError: print ("Oops! That was no valid number. Try again...")
If the user inserts a number that is not 5 - 20, I want the program to shut down, this value error only restarts the program if the user enters a letter or symbol.... how can i fix this?