How do I get a new list without duplicates?

[1, 2, 3, 1]  →  [1, 2, 3]

How do I get a new list where items that are duplicated are entirely removed?

[1, 2, 3, 1]  →  [2, 3]

5
57

Leave a Reply

Your email address will not be published. Required fields are marked *