+ 1

init method

https://code.sololearn.com/cqtlazPlu5vV/#py why am i getting an type error ? N cant have computer to take arguments. Did I end it up wrong?? Plz do help

21st Jul 2020, 6:24 AM
Mani
Mani - avatar
4 odpowiedzi
+ 4
codemonkey when I was running the code without correcting it. Firstly I was checking the errors. It was showing that computer Don't take arguments but in your code you have given it. How is that?
21st Jul 2020, 6:36 AM
Piyush
Piyush - avatar
+ 4
Thanks codemonkey i will remember 👍
21st Jul 2020, 6:39 AM
Piyush
Piyush - avatar
+ 2
Mani Computer () never takes argument so you should remove the arguments firstly.you should give attributes to 'computer'. Hope this helps👍
21st Jul 2020, 6:27 AM
Piyush
Piyush - avatar
+ 2
codemonkey Mani Also a class name should start with a capital letter and it is not mandatory to have a () class Computer:
21st Jul 2020, 6:51 AM
Tomiwa Joseph
Tomiwa Joseph - avatar