Rich Caniglia Age _best_ -

def get_age(self, name): birthdate = self.db.get_birthdate(name) if birthdate: today = datetime.today() age = today.year - birthdate.year - ((today.month, today.day) < (birthdate.month, birthdate.day)) return age return None

rich_caniglia_birthdate = datetime(1958, 4, 2) db.store_birthdate("Rich Caniglia", rich_caniglia_birthdate) rich caniglia age

"AgeTracker"

A simple web application that allows users to search for a public figure's age and receive their current age based on their birthdate. def get_age(self, name): birthdate = self