Answers for "Calculate age python"

0

Calculate age python

from datetime import date

def calculate_age(born):
    today = date.today()
    return today.year - born.year - ((today.month, today.day) < (born.month, born.day))
Posted by: Guest on October-06-2021

Python Answers by Framework

Browse Popular Code Answers by Language