def main(): infile = open("list.txt", "r") for line in infile: state = line[146:148]omit_states = ['KS', 'KY', 'MA', 'ND', 'NE', 'NJ', 'PR', 'RI', 'SD', 'VI', 'VT', 'WI']for n in omit_states: if state != n: print line infile.close() main()
If state not in omit_states:
process_line(line)
~ro
--
Sent from a mobile device.
_______________________________________________ Tutor maillist - [email protected] To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
