Deposit takes exactly two arguments (1 given)


Hi Codecademy,

I keep getting this error: deposit takes exactly two arguments (1 given).

Deposit is a method inside the class BankAccount, and I guess there is a difference from arguments and parameters but Im at a total loss. Could you please help?

Here is the code:


When you call instance.deposit() be sure to include an amount argument.



Hi MTF, Thanks for that. I understand now. Eric