0

What's wrong with this code?

So I started learning Python yesterday, and learned a lot to the point of where this sounded cool. However, a function in the class that I clearly passed 3 arguments says that I put four, and I only see 3. Can anyone help me with this. https://code.sololearn.com/cbp5UUfQbipv/?ref=app

17th May 2019, 2:04 PM
Archie
Archie - avatar
2 Antworten
+ 3
quick fix: https://code.sololearn.com/cx2iYGtcvaNE/?ref=app explanation: 1 for class method, the first argument must be self. at line 9, line 15 2 and to change the property of particular instance, should have self. prefix in the class method. at line 10, 11, 12, 16, 17, 18
17th May 2019, 2:11 PM
Gordon
Gordon - avatar
0
Gordon Thanks for the help!
17th May 2019, 2:36 PM
Archie
Archie - avatar