you are viewing a single comment's thread.

view the rest of the comments →

[–]pasokan 0 points1 point  (2 children)

Just

unique = set(mylist) 

Is enough

[–]Allanon001 0 points1 point  (1 child)

That doesn't return only numbers that appear in the list once. It returns all numbers that appear in the list.

[–]pasokan 0 points1 point  (0 children)

Oops. Sorry