Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
OP solved it, closing
Your solution has, unfortunately, more than one problem, but you are also interpreting the result of your printing incorrectly.
In your solution function, you have:
return text;
. But your printing is:So effectively you are not printing your result (which is returned by your solution), but something else.
And again, you did not manage to get it working. It appears to be working because your method of verification is faulty. If you'd manage to get it working, it would successfully pass tests :)
Read this article and see if it helps: https://docs.codewars.com/training/training-example
You can also ask for help in
#help-solve
channel of Codewars Discord.What do you mean by "working"? If it were working, it would pass tests, wouldn't it?