+ 1

CLOSED: Broken beginner code, help

Anyone please explain to a rookie why my text isn't printing with my magic str function. Tried indentation different but that just gave me errors. https://sololearn.com/compiler-playground/c0Iyli7KDGBf/?ref=app

19th Jul 2024, 12:17 PM
Nessie Cz
Nessie Cz - avatar
1 Resposta
+ 5
Hello Nessie Cz It is not working because you have nested the string method inside init and giving error because you are passing argument in it Just put your string method outside init And don't give any parameters except self It is working fine I have commented you the same Hope it helps you ☺️✨
19th Jul 2024, 12:36 PM
Hacker Badshah
Hacker Badshah - avatar