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
2 Respostas
+ 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
0
Gordon Thanks for the help!