Very simple python 🐍 solution using set
\nclass MagicDictionary:\n\n    def __init__(self):\n        self.myDict=set()\n\n    def buildDict(self, dictionary: List[str]) -> None:\n        for word in d
```\nclass MagicDictionary:\n\n    def __init__(self):\n        self.myDict=set()\n\n    def buildDict(self, dictionary: List[str]) -> None:\n        for word in dictionary:\n            self.myDict.add(word)\n\n    def search(self, searchWord: str) -> bool:\n        \n        for word in self.myDict:\n            if len(word)==len(searchWord) and word!=searchWord:\n                changes=0\n                for l1,l2 in zip(searchWord,word):\n                    if l1!=l2:\n                        changes+=1\n                    if changes>1:\n                        break\n                if changes==1:\n                    return True\n        return False\n\n```
['Python', 'Python3']