Edit the following python code such that it can take a list of elements and return the distinct elements in the list
def unique_elements(lst): 
    elements = []  
    for num in lst: 
        if num not in elements: 
            elements.append(num) 
    return elements
def unique_elements(lst): 
    elements = []  
    for num in lst: 
        if num not in elements: 
            elements.append(num) 
    return list(set(elements))