Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- age = input("How old are you?")
- if age.isdigit() is True:
- print('Nice! You are', age, 'y.o. dude!')
- elif age.isalpha() is True:
- print('Please try to type digits only!')
- else:
- print('You are trolling me?')
Add Comment
Please, Sign In to add comment