0 out of 68 challenges solved
**Question:** Write a function called `count_element_frequency` that takes a list as input and returns a dictionary containing the frequency of each element in the list. Use a for loop with `Counter` from the `collections` module to perform the counting. **Example:** Input: [1, 2, 2, 3, 3, 3, 4, 4, 4, 4] Output: {1: 1, 2: 2, 3: 3, 4: 4}
from collections import Counter def count_element_frequency(lst): """ Counts the frequency of each element in the given list. Args: lst (list): The input list. Returns: dict: A dictionary containing the frequency of each element. """ # TODO: Implement the count_element_frequency function pass