Find common words in 2 sentences
Anonymous
sent_1 = 'A blue whale is whale which is blue' sent_2 = 'The blue ocean has whales which are blue' list_1 = sent_1.split() list_2 = sent_2.split() for i in list_1: if i in list_2: print(i) break
Check out your Company Bowl for anonymous work chats.