Created
January 7, 2020 05:24
-
-
Save Moos1e/156e4c1236a6721e8a9724e0b6a7cf4f to your computer and use it in GitHub Desktop.
Age
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
while True: | |
try: | |
age = input("what is youre age?") | |
except NameError: | |
print('Please use numeric digits.') | |
if age < 1: | |
print('Please enter a positive number.') | |
break | |
print("Your age is {0}".format(age)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment