You will be given two sentences S1, S2 your task is to find
- a. Number of common words between S1, S2
- b. Words in S1 but not in S2
- c. Words in S2 but not in S1
I cant seem to do this problem for words , but I can do it for letters. Please help me out
example
S1= "the first column F will contain only 5 unique values"
S2= "the second column S will contain only 3 unique values"
Output:
a. 7
b. ['first','F','5']
c. ['second','S','3']