Last answered:

21 Jul 2022

Posted on:

08 Jan 2022

0

I received error message in the console when running the first few lines of codes

When I put this in the console:

my_bank = BankAccount(300)

I got this error message in the console:

TypeError: BankAccount() takes no arguments

1 answers ( 0 marked as helpful)
Posted on:

21 Jul 2022

0

Probably you have to apply __init__ method in the same way like in a video _> def __init__(self,name,age):

If you change __init__ to other word error will appear.

Submit an answer