Skip to content

Instantly share code, notes, and snippets.

@milosh-96
Created June 23, 2015 13:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save milosh-96/1e67902d7bf9e140396d to your computer and use it in GitHub Desktop.
Save milosh-96/1e67902d7bf9e140396d to your computer and use it in GitHub Desktop.
Character Input
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