Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- '''
- Created on 17 Sep 2014
- @author: Billy
- '''
- print("Hello, This program is going to calculate you age in days, simply answer the questions with your correct details")
- year = input("First Question: What year was you born in?\n")
- print("Okay so you were born in " + year + "?")
- month = input("Second Question: What month was you born in?\n")
- print("Okay so you were born in " + month + "?")
- day = input("Final Question: What day were you born on?\n")
- print("Okay so you were born in " + day + "?")
- import datetime
- today = datetime.date.today()
- someday = datetime.date(int(year, month, day))
- diff = someday - today
- print (diff.days)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement