Skip to content

Instantly share code, notes, and snippets.

Created Sep 9, 2021
What would you like to do?
def ageCalculator(y, m, d):
import datetime
today =
dob =, m, d)
age = int((today-dob).days / 365.25)
ageCalculator(1998, 9, 3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment