How do you check if the words exist in the sentence in python?
so far i have the_sentence =...
Computers and Technology, 04.11.2019 11:31 ethanseiter
How do you check if the words exist in the sentence in python?
so far i have the_sentence = ("i love chocolate and chocolate loves me")
sentence = the_sentence. split() print(sentence) sentence_1 = raw_input("enter a word") def "word": if word in the_sentence: print "yes" elif word not in the_sentence: print "nope"
Answers: 1
Computers and Technology, 24.06.2019 12:00, exoticbunnylover123
Which spreadsheet operation does a look function perform?
Answers: 1
Mathematics, 27.01.2020 21:31
Geography, 27.01.2020 21:31
Biology, 27.01.2020 21:31