def sortRemoveDupes(lst):
    """Sort the list, and remove duplicate symbols.
    """
    if len(lst) == 0:
        return lst
    lst.sort()
    lst = [lst[0]] + [lst[i] for i in range(1, len(lst))
            if lst[i] != lst[i - 1]]
    return lst
Sort the list, and remove duplicate symbols.
    
recipes/Python/200638_Generate_PythSymbol_Lists_Programmers_Editor/recipe-200638.py