This commit is contained in:
2016-01-19 18:04:54 -05:00
parent 569c654e81
commit 78906952d5
20 changed files with 301 additions and 0 deletions

18
3-birthday/README.md Normal file
View File

@ -0,0 +1,18 @@
Age Calculator
===============
###Part 1
Create a program that will take user input and tell them their age in months, days, hours, and minutes.
Sample output:
```
How old are you? 18
months : 216, days : 6480, hours : 155520, and minutes : 388800
```
###Part 2
Add a function to your program that takes the user's birthday as input in `YYYY-MM-DD` format and tells them their age in months, days, hours and minutes in the same fashion.
Hint: Take a look at Python's `datetime` library.

5
3-birthday/convert.py Normal file
View File

@ -0,0 +1,5 @@
def age_to_time(age):
pass
def birthday_to_time(birthday):
pass