Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def checker(a):
- if a.isdigit() == False or int(a) == 0 or not a:
- return False
- else:
- return True
- while checker(input("Enter number: ")) != True:
- checker(input("Not acceptable! Enter again: "))
- continue
- print("ok")
Advertisement
Add Comment
Please, Sign In to add comment