Python unique
py_list = [3, 1, 2, 2, 3, 1] result = list(set(py_list)) print(result) #> [1, 2, 3] Note: results are sorted as `set()` returns an ordered `set`.