Write a python function to find uncommon words between two sentences given
Topic: Write a python function to find uncommon words between two sentences given
Solution
def UncommonWords(A, B): count = {} for word in A.split(): count[word] = count.get(word, 0) + 1 for word in B.split(): count[word] = count.get(word, 0) + 1 return [word for word in count if count[word] == 1]
List all Python Programs