Generation

generate functionThu, 24 Nov 2022

Sum the days, months, and years from input year age to 90

def sum_year_to_90(age): days_to_90 = (90 - age) * 365 month_to_90 = (90 - age) * 12 years_to_90 = 90 - age return days_to_90, month_to_90, years_to_90 sum_year_to_90(25)

Questions about programming?Chat with your personal AI assistant