i have 2 string
str1 = ('rabbit is eating grass near a tree');str2 = ('rabbit is sleeping under tree');
In these 2 strings 'rabbit' 'is' 'tree' is common…. How can i find the common words present in 2 strings….
i want result
str = 'rabbit' 'is' 'tree'
Best Answer