def get_days(month: int, year: int): """ Get the number of days in a month :param month: The month :param year: The year :return: The number of days in the month :Example: >>> get_days(2, 2020) 29 >>> get_days(2, 2019) 28 >>> get_days(4, 2020) 30 """ if month == 2: if year % 4 == 0 and (year % 100 != 0 or year % 400 == 0): return 29 return 28 return 30 + (1 - (month % 2))