⬅︎ Back to Fastest way to uniqify a list in Python
>>> aux = {}; [aux.setdefault(p, p) for p in list('ABeeE') if p not in aux];['A', 'B', 'e', 'E']
Comment
>>> aux = {}; [aux.setdefault(p, p) for p in list('ABeeE') if p not in aux];
['A', 'B', 'e', 'E']