Guest User

Untitled

a guest
Jun 21st, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. base_pay = None
  2. while True:
  3. try:
  4. base_pay = int(input(">>> "))
  5. break
  6. except ValueError:
  7. print("Numbers only please")
  8.  
  9. if not (800 <= base_pay <= 1500):
  10. print("Please enter a value between 800 and 1500")
  11. continue
Add Comment
Please, Sign In to add comment