Remove duplicates from a List
# https://stackoverflow.com/questions/691946/short-and-useful-python-snippets L = [1, 2, 2, 3, 3, 3, 4, 4, 4, 4] print list(set(L))