I have been asked to find the position(s) of an input word from an input sentence and I am having trouble figuring out how to use enumerate, .split and lists together. This is what I have so far:
sntc=str(input("Please input a sentence with no punctuation."))
wrd=str(input("Please input a word from that sentence."))
words=sntc.split
list(enumerate(sntc))
for x in y in enumerate:
if x==(wrd):
print ("The chosen word is in postion(s):",x+1)
