Problem
InCoGniTo
josephb at zip.com.au
Mon Mar 27 02:39:57 EST 2000
Hey
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: -
def login():
print 'Welcome to Account System.','\n' ,'You now have to login the
user to access the account'
print '\n'
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'
time.sleep(3)
print '\n'
accountmenu()
if current_person == None:
print 'Sorry account records are not present in system
records'
print 'Going back to level 1'
print 'Loading, please wait ...'
time.sleep(2)
print '\n'
welcome_verfication()
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
module.
Note: This is my first program and I've never have used python before.ie
Newbie
Thanks for any help
InCoGniTo
ICQ:2159848
More information about the Python-list
mailing list