Jul-22-2017, 09:06 PM
Again, this is bad format. You are checking each account's pin, requiring you to repeat code and requiring you to add code every time you add an account.
Your data global is backwards. The pins should be the keys, the accounts should be the values. Then you can see if the pin is in the data (
Your data global is backwards. The pins should be the keys, the accounts should be the values. Then you can see if the pin is in the data (
pin in data
not pin == data
), and get the account out of the data with data[pin]. Then you take that account and run it through ONE set of code that checks for withdrawl or deposit.
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