I already made a start to this and it works perfectly so far, however it is not finding the position of one word no matter the method I used. I have researched and have found nothing so far, please help.
print ("Enter your sentence here.")
#This will ensure that the person knows to input a sentence.
sentence = input ()
#This will allow the person to input a sentence.
s = sentence.split()
#This will allow me to split the sentence.
positions = [s.index(x)+1 for x in s]
#This will change the first position from 0 to 1.
print ("Which word would you like to find in this sentence?")
#This will allow the person to write a word in their sentence.
word = input ()
#This allows the person to input the word.
print (positions)