class Solution: def Days(self,year,month,day): if (year%4==0 and year%100!=0) or year%400==0: monthlist=[0,31,29,31,30,31,30,31,31,30,31,30,31] else: monthlist=[0,31,28,31,30,31,30,31,31,30,31,30,31] years=year-1 days=years*365+years/4-years/100+year