josephb at zip.com.au
Mon Mar 27 09:39:57 CEST 2000
I'm trying to write a program which does basic bank functions and I have a
problem that I can not get it to read my list to see if there is a match in
a name so that the prgram can identify whos account it is. Can someone
please try and help me.
Here is what I have now: -
print 'Welcome to Account System.','\n' ,'You now have to login the
user to access the account'
print 'Please enter the customers First name'
fn = str(sys.stdin.readline())
print 'Please enter the customers Last name'
ln = str(sys.stdin.readline())
for item in customer_list:
if item.firstname == fn and item.lastname == ln:
current_person = item
print 'You have succesfully Logged in, now transfering to
account systems menu'
if current_person == None:
print 'Sorry account records are not present in system
print 'Going back to level 1'
print 'Loading, please wait ...'
There are many other fucntions and classes, for instance customer_list is my
list:). I don't get any errors the program just stops and qoutes me the
Note: This is my first program and I've never have used python before.ie
Thanks for any help
More information about the Python-list