I just completed the bank_teller Project, I used the solution set whenever I got stuck. My main sticking point was step 6 or anything similar to it it reads:
6. Call deposit function and make a savings deposit
On the next line, call the
make_deposit() function with these arguments;
savings_balance . Assign the function call to the matching
savings_balance variables that are also being returned by the function. That is how the new balances are being updated.
An acceptable line of code or at least one that was in the solution was:
savings_balance, checking_balance = make_deposit(“savings”, 10, checking_balance, savings_balance)
Truth be told I don’t exactly understand what is actually happening when I assign two variables to a function when two of those variables are parameters in the function. Can someone who is familiar with the project explain why this line of code is necessary? Or better yet what am I asking the computer to do when I assign two var. to a function that uses those variables as parameters?