OneLineWondersCode | 1000+ Commits | 279/300 One Liners | 200+ Forks | Actively maintained open-source collection of "one-line" programs performing various tasks in different languages
This takes in an arbitrary list and returns the unique elements of the original list.
Note that this gets around an obvious cheat: the set() collection in Python's standard
library achieves exactly this! Then you could just do: list(set(list1))
Please describe your program and how to run it.
This takes in an arbitrary list and returns the unique elements of the original list. Note that this gets around an obvious cheat: the
set()
collection in Python's standard library achieves exactly this! Then you could just do:list(set(list1))
What Programming Language?
Python