Created
June 23, 2015 13:18
-
-
Save milosh-96/1e67902d7bf9e140396d to your computer and use it in GitHub Desktop.
Character Input
This file contains hidden or 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
import datetime | |
name = raw_input("Enter your name") | |
years = raw_input("How old are you?") | |
try: | |
years = int(years); | |
print "Your name is",name,", 100 years you will have on a", (datetime.date.today().year - years) + 100," year" | |
except: | |
print "broj godina mora biti unet BROJEVIMA, ne slovima." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment