Leetcode 884. Uncommon Words from Two Sentences
class Solution: def uncommonFromSentences(self, A: str, B: str) -> List[str]: return [v for v, n in collections.Counter(A.split()+B.split()).items() if n == 1]
class Solution: def uncommonFromSentences(self, A: str, B: str) -> List[str]: return [v for v, n in collections.Counter(A.split()+B.split()).items() if n == 1]