0

why is the class not taking its attributes ??

https://code.sololearn.com/crrDm4VDDxG9/#py Even though i have a attribute named "compare" under my class "computer". it is unable to recognize it. So can anyone guide me a better way to sort this out ??

21st Jul 2020, 7:12 AM
Mani
Mani - avatar
3 Respostas
+ 5
Mani your code is correct. There are some indentation mistakes and extra spaces in your code
21st Jul 2020, 7:16 AM
AKSHAY🇮🇳
AKSHAY🇮🇳 - avatar
+ 3
Mani please use the tab option for indentation and as I said before, a class name should start with a capital letter. https://code.sololearn.com/cM400Nd46848/?ref=app
21st Jul 2020, 7:25 AM
Tomiwa Joseph
Tomiwa Joseph - avatar
+ 3
I know codemonkey but if you are going to do something, do it right, right?😃😃
21st Jul 2020, 7:30 AM
Tomiwa Joseph
Tomiwa Joseph - avatar