PythiloEasy · 12 min · Task 22 of 100 · progress kept in this browser

Keep first occurrences

Return distinct hashable items in order of first appearance, leaving the input unchanged.

seen = {3, 1}
value = 2
print(value not in seen)
Your task

Return distinct hashable items in order of first appearance, leaving the input unchanged.