[Python.NET] Nested Loops
W G
nonjunk at hotmail.com
Tue Nov 29 20:52:44 CET 2005
Hello,
The follow code willl read lines of two text files. It supposed to take the
first line of the first text file and compare it to all the lines of the
second text file, then go to the next line of the first text file and do the
same and so on.
The problem is that once the inner loop is finished, it never goes in that
loop again. Any suggestions?
Thank you,
Wes
The Code:
for refSymbol in symbols.readlines():
for lookupSymbol in myfile.readlines():
showme = lookupSymbol.split('\t')
if showme[3] == refSymbol.strip():
priceNew.write(refSymbol.strip()+" "+showme[10])
More information about the PythonDotNet
mailing list