Aequitas35

checker

Oct 18th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. def checker(a):
  2.     if a.isdigit() == False or int(a) == 0 or not a:
  3.         return False
  4.     else:
  5.         return True
  6.  
  7. while checker(input("Enter number: ")) != True:
  8.     checker(input("Not acceptable! Enter again: "))
  9.     continue
  10. print("ok")
Advertisement
Add Comment
Please, Sign In to add comment