How can I turn an input into a list (in python) and then the words in the sentence are displayed as there position in the list
User inputs a sentence. "Hello my name is bob and I like football".
This is then put into a list.
List("Hello my name is bob and I like football")
The list is then reprinted as [0,1,2,3,4,5,6,7,8,9,10]. Depending on the amount of words in the list.
Can someone please help me.
Which unis have sent theirs?