example
def words_intext(text, wordlist): for word in wordlist: if word not in text: return False return True value = 0 text = 'apple to banana of orange' value += words_intext(text, ['apple','orange','banana']) text = 'apple be a orange of banana' value += words_intext(text, ['apple','orange','banana']) text = 'apple vs orange' value += words_intext(text, ['apple','orange','banana']) print(value)
99 percent of computer problems exists between chair and keyboard.