Can you explain this code
sentence= input(" enter a sentence with no puncatuation: > ")<...
Computers and Technology, 01.09.2019 06:30 smallsbjs
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")
Answers: 1
Computers and Technology, 23.06.2019 18:50
Ais a picture icon that is a direct link to a file or folder
Answers: 1
Computers and Technology, 24.06.2019 04:30
How do you share someone else’s tweet with your own twitter followers?
Answers: 1
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
Computers and Technology, 24.06.2019 07:00
Why do we mark tlc plates with pencil and not with pen
Answers: 2
Mathematics, 25.06.2019 14:30
Chemistry, 25.06.2019 14:30
English, 25.06.2019 14:30
History, 25.06.2019 14:30
Mathematics, 25.06.2019 14:30
Physics, 25.06.2019 14:30
Chemistry, 25.06.2019 14:30
Mathematics, 25.06.2019 14:30