How to cleanly loop over two files in parallel in Python
<p>I frequently write code like:</p>

<pre><code>lines = open('wordprob.txt','r').readlines()
words = open('StdWord.txt','r').readlines()
i = 0
for line in lines:
 v = [eval(s) for s in line.split()]
 if v[0] &gt; v[1]:
  print words[i].strip(),
 i += 1
</code></pre>

<p>Is it possible to avoid use variable i and make the program shorter?</p>

<p>Thanks.</p>
