Deposit takes exactly two arguments (1 given)


#1

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:


#2

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

instance.deposit(500)

#3

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