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
when names are empty Python wont go into for loop and return empty list
Can someone explain that why empthy argument won't caues KeyError in first line?
(first line: names = [hash['name'] for hash in names])
Thanks for your explanation.
This comment is hidden because it contains spoiler information about the solution
This is lovely! I really like this. As mentioned, very easy to understand. I'm new to python so this was great. I learn't a lot from your code!
I really liked your solution. Easy to understand. Thanks
Sorry. I'm new here. I didn't realise. Thanks.
SPOILER FLAGS, PLEASE!
(comments on solutions are visible in the dashboard of anyone)
This comment is hidden because it contains spoiler information about the solution
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