subject

Can you explain this code
sentence= input(" enter a sentence with no puncatuation: > ")
sentence= sentence. lower()
keyword= input(" input a word from the sentence: > ")
keyword= keyword. lower()
words= sentence. split(' ')
for (i, subword) in enumerate(words):
if(subword == keyword):
print(i+1)
break
else:
print("error this word isnt in the sentence")

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 16:00
Helen is having a meeting with her colleagues in her company. they are working on the goals and objectives for the coming year. they want to ensure that these goals and objectives of the processes involved are properly evaluated. which system can helen and her colleagues apply to evaluate this? helen and her colleagues require a blank to evaluate the goals and objectives.
Answers: 2
question
Computers and Technology, 24.06.2019 02:10
Aspeed limit sign that says "night" indicates the legal speed between sunset and sunrise.
Answers: 2
question
Computers and Technology, 24.06.2019 07:00
Guys do you know sh27 cause he hacked me : ( pidgegunderson my old user
Answers: 2
question
Computers and Technology, 24.06.2019 07:20
3pointsyou've found an image you want to insert into your slide presentation. youwant to make the image look more gray so that it looks like an older imagewhat would you need to adjust? 0.00o a. sizeo b. hueo c. contrasto d. tones
Answers: 2
You know the right answer?
Can you explain this code
sentence= input(" enter a sentence with no puncatuation: > ")<...
Questions
question
Health, 26.01.2021 21:20
question
English, 26.01.2021 21:20
question
Chemistry, 26.01.2021 21:20
question
Mathematics, 26.01.2021 21:20
question
Mathematics, 26.01.2021 21:20
question
Mathematics, 26.01.2021 21:20
Questions on the website: 13722360