def search(self, word):
        """
        Returns if the word is in the trie.
        :type word: str
        :rtype: bool
        """
        node = self.searchPrefix(word)
        return node is not None and node.isEnd

        Returns if the word is in the trie.
        :type word: str
        :rtype: bool
        
python/208_Implement_Trie_(Prefix_Tree).py