Why does it say Attribute Error? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Why does it say Attribute Error?

Im trying to make a method where it would take the input and add it to the balance https://code.sololearn.com/c19NrPkRS217/?ref=app

7th Sep 2020, 2:20 AM
Shuarma
Shuarma - avatar
3 Answers
+ 1
https://code.sololearn.com/cmto3quyaouu/?ref=app
7th Sep 2020, 2:46 AM
Jason Kennedy
+ 2
Your deposit needs to be indented further. also acc = bankaccount(amount) NOT (0)
7th Sep 2020, 2:45 AM
Jason Kennedy
+ 2
thank you!
7th Sep 2020, 2:47 AM
Shuarma
Shuarma - avatar