python

Creating a list of unique items in Python without using sets

Below is an example of a helper function that returns a unique list of items without converting to a set while preserving the original order of the list.

def unique_list(seq):
    checked = []
    for e in seq:
        if e not in checked:
            checked.append(e)
    return checked