title: What is the function of enumerate in my code?
body: <p>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 ?</p>
  
  <pre><code>    sentence = ['The', 'cat','sat', 'on', 'the', 'mat']
      for index, word in enumerate(sentence):
          print (index, word)
  </code></pre>