> word1=line_word[0]
> if word1==001:

You are comparing a string and an integer assuming you are reading a
text file.

integers
word1=int(line_word[0])
if word1=1:

strings
word1=line_word[0]
if word1=="001:"

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to