Comment

Lawrence Oluyede

Keep in mind you can also use:

>>> lst = [1, 1, 3, 4, 4, 5, 6, 7, 6]
>>> set(lst)
set([1, 3, 4, 5, 6, 7])

Replies

Paul Boddie

Isn't that what f6 does, apart from the final conversion to a list again?

Lawrence Oluyede

Right. I totally missed f6()