Web Analytics

Can you please explain this code

sentence= input("Please Enter A Sentence With No Puncatuation:> ")

sentence= sentence.lower()

keyword= input("Please 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")