Jul-23-2017, 01:48 PM
You want to return data[pin] from enter_pin, to get the account they logged into. Then you change your call to enter_pin on line 58 to
account = enter_pin()
. Now you've go the account they have logged into, and you don't need to check the pin. So you don't need line 60. For line 62 on, you don't use Bone.checkbalance() and Bone.withdraw(w1), you use account.checkbalance() and account.withdraw(w1). Then line 75 onward can just be deleted.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures