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.
This comment is hidden because it contains spoiler information about the solution
It's cleaver as hell. But would be great to understand where from if condition are like that - to learn some algebra ;)
Thank you, thank you, thank you! For explanation what is going on there.
And the biggest benefit - since I learn f-strings i almost try to forget about other ways of printing output. Now you bring some power for older strings formating options.
This comment is hidden because it contains spoiler information about the solution
But will work well also without :3 - it will take with *names and unpack from names as many as needed to fill all {} brackets
Thank you for pointing out my missunderstanding. Now it's passed.
Another example how poor tests and not so straight description can ruin developers mind :D
It seems that you did not understand the task correctly.
Basically you are expected to reimplement Python's map( ) function with a little bit of additional requirements.
The way how
map
works, it accepts a mapping function, and a (for sake of simplicity) list. Mapping function is expected to accept one element of the list, and return its value mapped in some way. In your solution, however,func
accepts whole list, transforms it, and returns a list back. It's not how mapping function is expected to work.Kata itself indeed does not help you, because error messages are not helpful at all, and there are actually no helpful assertion messages. If that's something you'd like to complain about, raise it as a separate, specific issue.
This comment is hidden because it contains spoiler information about the solution
I just tried the kata and there was no problem for me. Could you share your code (remember about spoiler flag and markdown formatting), so we could check?
This comment is hidden because it contains spoiler information about the solution
it's the f-string formatting
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
you're welcome :) (...but don't forget the spoiler flag! ;) )
This comment is hidden because it contains spoiler information about the solution