For me, it was because I was checking for empty code before the flush. Flush should be executed 'before execution', so it has to be the first thing that happens.
Using String.prototype works slightly different than creating a normal function. Try googling about it. You have some other typos in your code spilt being one and the methods use () instead of []. I hope you can work it out with this.
It's indeed not a problem coming from the tests so the issue is no longer relevant about this specific Kata.
Thanks, I'll open an issue there ! Great kata by the way, still a lot of work to do to actually make it pass for real !!
That's very bizarre. I wrote this years ago. Maybe Jake Hoffner or someone at Codewars staff could take a look? https://www.codewars.com/topics/bug-reports
This comment is hidden because it contains spoiler information about the solution
your'e right.
I see where i went wrong though, I used 'string' in my last line, instead of the variable 'phrase'.
Isn't it System.Globalization?
This comment is hidden because it contains spoiler information about the solution
Sorry for not reviewing your wall of codem but 500+ successful python comlpletions suggests that the issue is in your code, not in the kata.
I also updated the python version to 3.8, although again, that was most probably not your problem.
For me, it was because I was checking for empty code before the flush. Flush should be executed 'before execution', so it has to be the first thing that happens.
This comment is hidden because it contains spoiler information about the solution
i wish i could write code this elegant
This comment is hidden because it contains spoiler information about the solution
Using
String.prototype
works slightly different than creating a normal function. Try googling about it. You have some other typos in your codespilt
being one and the methods use()
instead of[]
. I hope you can work it out withthis
.This comment is hidden because it contains spoiler information about the solution
Thanks!! It was all so simple
Loading more items...