def has_duplicates(n): 
    """ Check if the given list has unique elements
        Uses the property of sets:
        If converted into a set it is guaranteed to have unique elements.
        -> Compare number of elements to determine if the list contains duplicates
    """
    if type(n) is not list:
        raise TypeError("Given input is not a list")

    if len(n) != len(set(n)):
        return True

    return False