<prompt> Kujenga kazi ambayo huamua idadi ya siku katika mwezi fulani kwa kutumia jina mwezi na tarehe.  <response>: Sure, here is a Python function that you can use to determine the number of days in a given month based on the month name and year:from calendar import monthrangedef days_in_monthmonth: str, year: int - int: This function takes month name and year and returns the number of days in that particular month. months january: 1, february: 2, march: 3, april: 4, may: 5, june: 6, july: 7, august: 8, september: 9, october: 10, november: 11, december: 12 if month.lower not in months: raise ValueErrorfInvalid month name: month. month_num monthsmonth.lower days monthrangeyear, month_num1 return daysexampleprintdays_in_monthFebruary, 2020This function uses the monthrange method from the calendar module. It takes the month name and year as arguments, converts the month name to its corresponding integer value using the months dictionary, and then uses the month integer value and year as input for the monthrange method. This method returns a tuple where the first value is the weekday of the first day of the month and the second value is the number of days in the month. The function returns only the second value which represents the number of days in the month. Note that this function accounts for leap years, so it returns the correct number of days for the month of February in leap years. 