Re: [Tutor] searching data from a list read from a file

2011-05-15 Thread Alan Gauld
"Lea Parker" wrote in Peter has pointred you to the answer, here are some general comments: def main(): try: SDee the recent posts re the scope of try/except handling. This is probably a bit too much for a single exception type! # Open file for reading infile = open

Re: [Tutor] searching data from a list read from a file

2011-05-15 Thread Peter Otten
Lea Parker wrote: [Lea, please reduce the number of empty lines in your posted source code.] > When you have time I would like some advice on where to go. I have created > a program that reads charge account numbers from a file. The user is to > enter a charge account number from the list present

[Tutor] searching data from a list read from a file

2011-05-15 Thread Lea Parker
Hello J When you have time I would like some advice on where to go. I have created a program that reads charge account numbers from a file. The user is to enter a charge account number from the list presented and the program should then tell them whether they have entered a valid or invalid num