How do I replace the words in a list with the position of that word? It should be pretty basic please, like GCSE level : Sentence = input("type in sentence:"). split()

#The above stores the individual words in Sentence, into a list
# But now how do I replace each word in Sentence with the position of that word 
