Skip to content

Commit

Permalink
Merge pull request wzhouwzhou#24 from Priultimus/patch-2
Browse files Browse the repository at this point in the history
Makes get_age completely 1 line
  • Loading branch information
wzhouwzhou authored Oct 15, 2018
2 parents af210a4 + c6596f3 commit 5624e56
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions python/get_age.py
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
from datetime import date, timedelta

age = (date.today() - birth_date) // timedelta(days=365.2425)
from datetime import date, timedelta;age = (date.today() - birth_date) // timedelta(days=365.2425)

0 comments on commit 5624e56

Please sign in to comment.