+ 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
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 ☺️✨