Unique List
def unique(items): found = set() keep = [] for item in items: if item not in found: found.add(item) keep.append(item) return keep