omg I literally just learnt about decorators yesterday and kept thinking "I wish I had def help_me so I could use a decorator on it, but never thought to actually use help_me as a decorator
Forfeiting is not an option to me, I just try to solve it later when I come back smarter (hopefully).
I tried setting a default in the args (that would call the function for initialization?) but that's forbidden because of the =.
Next I would play around with a decorator (which also is kinda fancy).
Maybe first yield, then return? But yield stops the execution. Still a lot of confusion and stuff to try.
However, your slight hint gave me motivation, thanks!
So obviously you need a language feature I don't know about yet. What is it? Closures?
Doing 2 hours of blind research is just not appropriate for a 7 kyu to me.
Very cool kata.
bah, the restrictions aren't mentioned in the description :/
omg I literally just learnt about decorators yesterday and kept thinking "I wish I had def help_me so I could use a decorator on it, but never thought to actually use help_me as a decorator
Got me thinking for ages, very clever.
EDIT: nvm
dumb kata, not sure what it's supposed to teach. The test responses are useless and unhelpful as well.
Fork updating to 3.10
The cause blocking update was a test trying to import the now removed symbol module. I have simply removed that test.
it seems that it was fixed
That's ok too, sometimes, leaving it for later is for the best. I'm pretty sure a facepalm will happen when you solve it ;) .
Forfeiting is not an option to me, I just try to solve it later when I come back smarter (hopefully).
I tried setting a default in the args (that would call the function for initialization?) but that's forbidden because of the
=
.Next I would play around with a decorator (which also is kinda fancy).
Maybe first yield, then return? But yield stops the execution. Still a lot of confusion and stuff to try.
However, your slight hint gave me motivation, thanks!
No, nothing that fancy, no. You know you can forfeit and see the solutions if you give up, don't you?
So obviously you need a language feature I don't know about yet. What is it? Closures?
Doing 2 hours of blind research is just not appropriate for a 7 kyu to me.
Removed
open
from list of banned phrasesLoading more items...