0 out of 464 challenges solved
Write a function `max_length_list` that takes a list of lists as input and returns a tuple containing the maximum length of the lists and the list with the maximum length. If there are multiple lists with the same maximum length, return the first one encountered. #### Example Usage ```python [main.nopy] print(max_length_list([[0], [1, 3], [5, 7], [9, 11], [13, 15, 17]])) # Output: (3, [13, 15, 17]) print(max_length_list([[1, 2, 3, 4, 5], [1, 2, 3, 4], [1, 2, 3], [1, 2], [1]])) # Output: (5, [1, 2, 3, 4, 5]) print(max_length_list([[3, 4, 5], [6, 7, 8, 9], [10, 11, 12]])) # Output: (4, [6, 7, 8, 9]) ```
def max_length_list(input_list): """ Find the list with the maximum length in a list of lists. Args: input_list (list of lists): A list containing sublists. Returns: tuple: A tuple containing the maximum length and the list with the maximum length. """ # Placeholder for the solution pass