Check if string contains a certain amount of words of another string,x = [x for x in b.split() if x in a.split()]