title: AttributeError: 'list' object has no attribute 'close'
body: <p>I have a Python Script in which I'm opening two files for reading and when I'm trying to close them, it throws me the <strong><em>AttributeError: 'list' object has no attribute 'close'</em></strong> error.</p>
  
  <p>Excerpt of my script is as below :</p>
  
  <pre><code>firstFile = open(jobname, 'r').readlines()  
  secondFile = open(filename, 'r').readlines()  
  {  
      bunch of logic  
  }  
  firstFile.close()  
  secondFile.close()
  </code></pre>