Creating a New List with Multiple Occurrences Removed Using the Set() Function in Python
ECX 30 Days of Code:
Day 1
List to Set
Task
Create a function that takes in a list as input, and returns (and prints) a new list with all repetitions reduced to one appearance alone, as output.
e.g.; f(["a", "b", "a", "a", 3, 3, 2, "hello", "b"]) => ...
thecodingprocess.hashnode.dev2 min read