0 out of 464 challenges solved
Write a Python function `has_31_days(month_number)` that determines whether a given month (represented by its number, 1 for January through 12 for December) has 31 days. Return `True` if the month has 31 days, and `False` otherwise. #### Example Usage ```python [main.nopy] print(has_31_days(1)) # Output: True (January has 31 days) print(has_31_days(2)) # Output: False (February does not have 31 days) print(has_31_days(4)) # Output: False (April does not have 31 days) ```
def has_31_days(month_number): """ Determine if the given month has 31 days. Args: month_number (int): The month number (1 for January, 12 for December). Returns: bool: True if the month has 31 days, False otherwise. """ # Placeholder for the solution pass