0 out of 464 challenges solved
Write a Python function `find_max_length(lst)` that takes a list of lists as input and returns the length of the longest sublist. If the input list is empty, the function should return `0`. #### Example Usage ```python [main.nopy] print(find_max_length([[1], [1, 4], [5, 6, 7, 8]])) # Output: 4 print(find_max_length([[0, 1], [2, 2], [3, 2, 1]])) # Output: 3 print(find_max_length([[7], [22, 23], [13, 14, 15], [10, 20, 30, 40, 50]])) # Output: 5 print(find_max_length([])) # Output: 0 ```
def find_max_length(lst): """ Find the length of the longest sublist in a list of lists. Args: lst (list of lists): A list containing sublists. Returns: int: The length of the longest sublist. """ # Implement the function logic here pass