Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- result = False
- def Size(x):
- x = int(x)
- return [False, True] [x >= 1 and x <=10]
- n = input("Enter a number between 1 and 10 : ")
- while True:
- try:
- result = Size(n)
- break
- except:
- n=input("You have to type a value : ")
- print(result)
Advertisement
Add Comment
Please, Sign In to add comment