title: What Does Enumerate Do in This Context [Python]
body: <p>I know that there is another answer to this but that's for complex users. I'm a basic python user who started a couple of days ago. So I need a simple answer</p>
  
  <p>Im trying to understand this line of code. Mostly the enumerate part. Could someone please what enumerate does.</p>
  
  <pre><code>f = open("solutions.txt", "r")
  searchlines = f.readlines()
  for i, line in enumerate(searchlines):
  </code></pre>
  
  <p>Thanks in Advance</p>