Python 3 - One Liner
Approach:\n\nBoth the strings are merged into one string and a count of each word is kept using collections.Counter().\nOnly those words are appended in the lis
Approach:\n\nBoth the strings are merged into one string and a count of each word is kept using ```collections.Counter()```.\nOnly those words are appended in the list whose count = 1.\n\n```\nclass Solution:\n    def uncommonFromSentences(self, A: str, B: str) -> List[str]: \n        return [key for key, value in (collections.Counter(str(A + " " + B).split())).items() if(value == 1)]\n```
['Python3']