Iterate across lines in two files in sequence
<p>I have two files, and I want to perform some line-wise operation across both of them (one by one). I am now using two loops to achieve this. Is there a way to do it in a single loop (in python 2.7):</p>

<pre><code>for fileName in [fileNam1,fileName2]:
    for line in open(fileName):
        do something
</code></pre>
