Python: Not finding value in list that should be there
<p>I am trying to find entries with specific zip codes in a mailing list (CSV format). 
I thought this should work but it never finds anything despite my knowing that the sought after zip codes are there. </p>

<pre><code>text = open("during1.txt","r")
a = list(range(93201,93399))
b = list(range(93529,93535))
c = list(range(93601,93899))
d = list(range(95301,95399))
KFCFzip = a+b+c+d
output = open("output.txt","w")

for line in text:
    array= line.strip().split(",")
    print(array[6][0:5])
    if array[6][0:5] in KFCFzip:
        #output.write(array)
        print("yes")
text.close()
output.close()
</code></pre>

<p>When I run the code, it finds no matches, but the print statement above the IF statement prints out values that look like they should be matches, and when I go to the Shell and type in something like </p>

<pre><code>93701 in KFCFzip
</code></pre>

<p>It gives me back "True:, so it's work to that extent. The file is just text separated by commas, so I can't figure out why it can see them. 
The data file has live data, so I would have to change it a bit before posting. I was wondering if anyone had any ideas that didn't involve posting the data itself. </p>
