Asked about Lists, dictionaries and sets

How would you remove duplicates from a list?

An answer that works

list(set(items)) is the quickest way, but it loses the original order. If order matters, use list(dict.fromkeys(items)), because dictionaries keep insertion order in modern Python.

Reading an answer is not being able to give one. The section that teaches this is Lists, dictionaries and sets, 3 hours of Python.

Learn this properly