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 19:30
Asalesman at a high end computer security firm want to sell you a proactive cover for your passport, which contains an rfid tag inside storing your sensitive information. the salesperson's solution cost only $79.99 and protects your passport from being read via radio waves while it is in your pocket. explain how you can achieve the same thing under $3.00
Answers: 3
question
Computers and Technology, 22.06.2019 02:00
What is the process in which the software development team compiles information to determine the final product.
Answers: 3
question
Computers and Technology, 22.06.2019 14:20
Consider a byte-addressable computer with 16mb of main memory, a cache capable of storing a total of 64kb of data and block size of 32 bytes. (a) how many bits in the memory address? (b) how many blocks are in the cache? (c) specify the format of the memory address, including names and sizes, when the cache is: 1. direct-mapped 2. 4-way set associative 3. fully associative
Answers: 2
question
Computers and Technology, 22.06.2019 20:00
Which type of file can be used to import data into a spreadsheet?
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
English, 01.02.2021 09:30
question
Mathematics, 01.02.2021 09:30
question
Mathematics, 01.02.2021 09:30
question
Business, 01.02.2021 09:30
question
Mathematics, 01.02.2021 09:30
Questions on the website: 13722363