subject

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"

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 22:00
Which one of the following identifies the primary a purpose of information classification processes? a. define the requirements for protecting sensitive data.b. define the requirements for backing up data.c. define the requirements for storing data.d. define the requirements for transmitting data.
Answers: 2
question
Computers and Technology, 22.06.2019 06:00
What role do chromosomes play in inheritance?
Answers: 1
question
Computers and Technology, 23.06.2019 10:00
Hey i just logged on and one of the moderators deleted a bunch of my answers to questions, even though the answers were right and the people it doesn't make sense but if anyone wants to talk about anything just message me lol (this is super random lol)
Answers: 1
question
Computers and Technology, 23.06.2019 14:30
Open this link after reading about ana's situation. complete each sentence using the drop-downs. ana would need a minimum of ato work as a translator. according to job outlook information, the number of jobs for translators willin the future.
Answers: 3
You know the right answer?
How do you check if the words exist in the sentence in python?
so far i have the_sentence =...
Questions
question
Chemistry, 30.10.2019 01:31
question
Chemistry, 30.10.2019 01:31
question
Mathematics, 30.10.2019 01:31
question
Mathematics, 30.10.2019 01:31
question
English, 30.10.2019 01:31
question
Mathematics, 30.10.2019 01:31
question
Mathematics, 30.10.2019 01:31
question
Mathematics, 30.10.2019 01:31
question
Mathematics, 30.10.2019 01:31
Questions on the website: 13722360