def get_uniques ( l ) : result = [ ] for i in l : if i not in result : result . append ( i ) return result
python comprehension list distinct
Returns a list with no repeated elements .
def get_uniques(l):
    """ Returns a list with no repeated elements.
    """
    result = []

    for i in l:
        if i not in result:
            result.append(i)

    return result