lines = open('wordprob.txt', 'r').readlines()
words = open('StdWord.txt', 'r').readlines()
for i, line in enumerate(lines):
    v = [eval(s) for s in line.split()]
if v[0] > v[1]:
    pass
How to cleanly loop over two files in parallel in Python