title: How to use enumerate in this program?
body: <pre><code>f=open('Student.dat','r+') # opens Student.dat file
  roll1=input("Enter roll to be found") # to find a record in a list using a roll no
  rec=f.readlines()
  for i,lst in enumerate(rec):
          if lst == roll1:
              print rec[i]
  </code></pre>
  
  <p>Is this the proper way to use enumerate?? or should i use another loop within?? </p>