0 out of 68 challenges solved

Find unique elements in a given list

Question:
Write a function called find_unique_elements that takes a list as input and returns a new list containing the unique elements from the input list. Use sets to find the unique elements.

Example:
Input: [1, 2, 2, 3, 4, 4, 5]
Output: [1, 2, 3, 4, 5]

def find_unique_elements(lst):
    """
    Finds the unique elements in a given list.

    Args:
        lst (list): The input list.

    Returns:
        list: A new list with the unique elements.
    """
    # TODO: Implement the find_unique_elements function
    pass