Guest User

Untitled

a guest
Feb 26th, 2020
77
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. while True:
  2. try:
  3. num = int(input('Your number: '))
  4. except ValueError as errorMessage:
  5. print(errorMessage + '. Please try again.')
  6. continue
  7. break
RAW Paste Data