i've done a bit of code that basically finds the index of words in a sentence but i don't really understand what i've done and the what is the function of the enumerate ?
sentence = ['The', 'cat','sat', 'on', 'the', 'mat']
for index, word in enumerate(sentence):
print (index, word)