# file: 'app11.py'
# Number of days per month. First value placeholder for indexing purposes.
month_days=[0,31,28,31,30,31,30,31,31,30,31,30,31]defis_leap(year):"""Return True for leap years, False for non-leap years."""returnyear%4==0and(year%100!=0oryear%400==0)defdays_in_month(year,month):"""Return number of days in that month in that year."""# year 2017
# month 2
ifnot1<=month<=12:return'Invalid Month'ifmonth==2andis_leap(year):return29returnmonth_days[month]print(is_leap(2017))print(is_leap(2020))print(days_in_month(2017,2))
In addition to scientific research, I develop business software and websites with the aim of creating a new product or service that consumers will want.
Keep going!Keep going ×2!Give me more!Thank you, thank youFar too kind!Never gonna give me up?Never gonna let me down?Turn around and desert me!You're an addict!Son of a clapper!No wayGo back to work!This is getting out of handUnbelievablePREPOSTEROUSI N S A N I T YFEED ME A STRAY CAT