0 out of 464 challenges solved
Write a function `are_all_dicts_empty` that takes a list of dictionaries as input and returns `True` if all dictionaries in the list are empty, and `False` otherwise. #### Example Usage: ```python [main.nopy] print(are_all_dicts_empty([{}, {}, {}])) # Output: True print(are_all_dicts_empty([{}, {"key": "value"}, {}])) # Output: False print(are_all_dicts_empty([])) # Output: True ``` #### Requirements: - The function should handle an empty list as input and return `True`. - The function should work for any list of dictionaries, regardless of their content.
def are_all_dicts_empty(dict_list): """ Check if all dictionaries in the given list are empty. Args: dict_list (list): A list of dictionaries. Returns: bool: True if all dictionaries are empty, False otherwise. """ # Placeholder for the solution pass