13Remove Duplicates
Easylistssets
Write unique(items) that returns a new list with duplicates removed.
Keep the first time each item appears, in the original order.
Examples
Example 1
>>> unique([1, 2, 2, 3, 1]) [1, 2, 3]
Example 2
>>> unique(['b', 'a', 'b', 'c', 'a']) ['b', 'a', 'c']
Run examples checks the 2 examples above. Submit runs all 5 tests, including hidden edge cases, and marks the challenge solved.