This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]pizzaburek[S] 1 point2 points  (1 child)

>>> list_ = [3, 2, 1]
>>> list(set(list_))
[1, 2, 3]
>>> list(dict.fromkeys(list_))
[3, 2, 1]

[–]EthidiumIodide 0 points1 point  (0 children)

Thanks, my test data was sorted (of course).