Python :In the last line it is showing syntax error.why?

  python
def checkage(year,month,day):
today_day=11
today_month=6
today_year=2021
age=((today_year*365)+ 
(today_month*30)+today_day)- 
((year*365)+(month*30)+day)
print(age//12,"year",(age- 
((age//12)*365))//30,"month", 
(age-((age-
((age//12)*365))//30)*30,"days")
 
checkage(1996,12,11)

Python :In the last line it is showing syntax error.why?

Source: Python Questions

LEAVE A COMMENT