Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while True:
- a = input("Enter first input: ")
- b = input("Enter second input: ")
- try:
- val = int(a)
- val1 = int(a)
- if val1 != 5 or val != 5:
- print("I'm sorry but it must be a pos int and equal 5")
- continue
- break
- except ValueError:
- print("That's not an int")
Add Comment
Please, Sign In to add comment