Wouldn’t a set work just as well as a hash table?
Of course not but what are k/v pairs necessary for here to solve the problem? We are querying the key only.
Course: Data Structures and Algorithms in Python - Learn Interactively
Lesson: Remove Duplicates - Data Structures and Algorithms in Python