[Tutor] Matching zipcode in address file
alan.gauld at btinternet.com
Mon Apr 5 00:49:02 CEST 2010
"TGW" <galaxywatcher at gmail.com> wrote
> I go the program functioning with
> lines = [line for line in infile if line[149:154] not in match_zips]
> But this matches records that do NOT match zipcodes. How do I get this
> running so that it matches zips?
Take out the word 'not' from the comprehension?
Author of the Learn to Program web site
More information about the Tutor