DEV Community

Discussion on: Remove duplicates from an Array the short & sweet way!

Collapse
 
rohansawant profile image
Rohan Sawant

Bonus - This works similarly in Python too, you can convert a List to a Set and that removes the duplicates.

Collapse
 
ajmalhassan profile image
Ajmal Hassan

One thing though, Python has unordered sets so, it may not keep the order of the elements intact.