Python3 simple solution!
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\nclass WordDictionary:\n\n    def __init__(self):\n        self.text = []\n        \n\n    def addWord(self, word: str) -> None:\n        self.text.append(word)\n        \n\n    def search(self, word: str) -> bool:\n        if \'.\' not in word:\n            return word in self.text\n\n        for t in self.text:\n            if len(t) != len(word):\n                continue\n            for i in range(len(word)):\n                if word[i] == \'.\':\n                    continue\n                if word[i] != t[i]:\n                    break\n            else:\n                return True\n        return False\n        \n\n\n# Your WordDictionary object will be instantiated and called as such:\n# obj = WordDictionary()\n# obj.addWord(word)\n# param_2 = obj.search(word)\n```
['Python3']