Guest User

Untitled

a guest
Nov 23rd, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. while True:
  2. a = input("Enter first input: ")
  3. b = input("Enter second input: ")
  4. try:
  5. val = int(a)
  6. val1 = int(a)
  7. if val1 != 5 or val != 5:
  8. print("I'm sorry but it must be a pos int and equal 5")
  9. continue
  10. break
  11. except ValueError:
  12. print("That's not an int")
Add Comment
Please, Sign In to add comment