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, 23.06.2019 07:30
To check spelling errors in a document, the word application uses the to determine appropriate spelling. internet built-in dictionary user-defined words other text in the document
Answers: 2
question
Computers and Technology, 24.06.2019 03:30
What is the purpose of a computer network needs assessment? to analyze which workers need more training to improve their performance to compare worker productivity to determine what steps employees can take to increase company revenue to evaluate how to move from the current status to the desired goal
Answers: 2
question
Computers and Technology, 25.06.2019 15:30
In a paragraph of no less than 125 words, explain what netiquette is and how it improves efficiency and productivity in the workplace.
Answers: 1
question
Computers and Technology, 26.06.2019 08:20
Pda bkhhksejc pnwjoynelp dwo xaaj ajykzaz ywj ukq zaykza the key value is 22
Answers: 1
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
Mathematics, 19.05.2021 08:20
question
Mathematics, 19.05.2021 08:20
question
Mathematics, 19.05.2021 08:20
Questions on the website: 13722367