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.
But how does it work?
You shouldn't order the input right?
This comment is hidden because it contains spoiler information about the solution
I really like your solution supervik!
I don't know, maybe I'm biased but I think my solution is more readable... Would greatly appreciate any kind of feedback on it.
https://www.codewars.com/kata/reviews/552fd3dcac4956812b000050/groups/5f8a100656594b0001d32b71
This seems the most elegant to me, uses the joins efficiently, uses
.format
nicely. Shows a keeness in separating the problem into efficient subproblems.Wow, what a clever solution!
Niiice the first line in the condition I spent to much timle but couldn't get any closer to it hahah
For those wondering, you don't need OrderedDict with Python3.6
Dict are already ordered.
The force is strong with this one. Seeing great solutions like this is what makes codewars so addictive!
The alternative is equally bad. They both reimplement functionality that Python already provides because the authors do not fully understand how sequence slicing and
str.join
work. Here is a Pythonic solution that is easy to read:https://www.codewars.com/kata/reviews/552fd3dcac4956812b000050/groups/59cbbc0df7ee423018000a42
SORCERY
This comment is hidden because it contains spoiler information about the solution
No need for
el
inelif
, or theelse
, since you're returning early. Could be, e.g.:Can someone point out why this is a best practice?
it is not self-explanatory and it bears a lot of nested functions, however it is a maintable code(In my opinion)
This will raise a KeyError if passed a dict without the key 'name'
Loading more items...