+ 1

Class problens

I'm having problems with classes. Could anyone help? The problem is that: https://code.sololearn.com/cSG5dB959v69/?ref=app

30th Nov 2018, 7:15 PM
Augusto Ferreira Tobias
Augusto Ferreira Tobias - avatar
1 ответ
0
Your method 'attributes' is never called. You could solve that by assigning the attributes within init. After that you will get another error: In your print statements you try to '+' str and int - that doesn't work in Python.
30th Nov 2018, 7:36 PM
HonFu
HonFu - avatar