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 18:50
Ais a picture icon that is a direct link to a file or folder
Answers: 1
question
Computers and Technology, 24.06.2019 04:30
How do you share someone else’s tweet with your own twitter followers?
Answers: 1
question
Computers and Technology, 24.06.2019 07:00
Selective is defined as paying attention to messages that are consistent with one’s attitudes and beliefs and ignoring messages that are inconsistent.
Answers: 1
question
Computers and Technology, 24.06.2019 07:00
Why do we mark tlc plates with pencil and not with pen
Answers: 2
You know the right answer?
Can you explain this code
sentence= input(" enter a sentence with no puncatuation: > ")<...
Questions
question
History, 25.06.2019 14:30
question
Mathematics, 25.06.2019 14:30
question
Physics, 25.06.2019 14:30
question
Mathematics, 25.06.2019 14:30
Questions on the website: 13722363