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.
Thanks!
ah, so you are one of those premature optimizers
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Could you explain how this solution works? This kata kind of puzzled me. I worked at it for hours and had to forfeit to see how it's solved, only to learn that I only needed to add one more line of code :(
Because you have to return the function call inside your function too. Add
return
to the last line.Yep, it seems you're right @Blind4Basics, didn't notice Python version.
And yes, it's about missing delimiter at all @YuriyCherniy.
it comes from the solution of the user:
default value for delimiter is
None
so you need to take care of that case too, Yuriy.Interesting. Message
TypeError: Can't convert 'NoneType' object to str implicitly
does not look like from this code. Additionally I didn't received such error using your solution.Please specify with which parameters you catch this traceback?
Don't use global vars, they keep their value between tests. Also your function should return the value, not print it and when using recursion you should return the function call too.
Looks like you might be sorting the numbers as strings.
For example:
In the future it would be very useful if you write which programming language you are using (we can't see which you used), and the expected and actual outputs.
Because your functions should return in CW, not print.