Advertisement
Guest User

Untitled

a guest
Sep 17th, 2014
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. '''
  2. Created on 17 Sep 2014
  3.  
  4. @author: Billy
  5.  
  6. '''
  7. print("Hello, This program is going to calculate you age in days, simply answer the questions with your correct details")
  8. year = input("First Question: What year was you born in?\n")
  9. print("Okay so you were born in " + year + "?")
  10. month = input("Second Question: What month was you born in?\n")
  11. print("Okay so you were born in " + month + "?")
  12. day = input("Final Question: What day were you born on?\n")
  13. print("Okay so you were born in " + day + "?")
  14.  
  15. import datetime
  16. today = datetime.date.today()
  17. someday = datetime.date(int(year, month, day))
  18. diff = someday - today
  19. print (diff.days)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement