days in month in year
unknown
plain_text
a year ago
885 B
1
Indexable
Never
month = int(input("month =")) year = int(input("year =")) if year % 4 == 0: if year % 100 != 0: if month == 2: print("the number of days are 29") elif month == 4 or month == 6 or month ==8 or month==10 or month ==12: print("the number of days are 30") else: print("the number of days are 31") else: if month == 2: print("the number of days are 28") elif month == 4 or month == 6 or month ==8 or month==10 or month ==12: print("the number of days are 30") else: print("the number of days are 31") else: if month == 2: print("the number of days are 28") elif month == 4 or month == 6 or month ==8 or month==10 or month ==12: print("the number of days are 30") else: print("the number of days are 31")