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.
That's what I did, but spaced out to make it more readable.
Interesting indeed, maybe also "Pythonic", but not the functional programming approach that most likely was envisioned by the author of the kata.
This comment is hidden because it contains spoiler information about the solution
Very nice solution !!! Awesome)
This looks nice, but by defining 'string.lower()' within the for loop instead of a variable outside of it requires python to perform the lower function during each iteration of the for loop instead of just once if written outside the for loop. Which imo makes this a lesser candidate for 'best practice' than other solutions.
This should be a 7 on Python IMO, not a 6. Too easy.
My solution was similar to yours. Could simplify your return and list comprehension.
This comment is hidden because it contains spoiler information about the solution
Duplicate issue above
This comment is hidden because it contains spoiler information about the solution
I am late with this comment. But this kata is quite suitable with 7 kyu rank. The only thing that can be difficult is to read the description correctly.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
@sean_little the description states: 'If the list is made up of only negative numbers, return 0 instead.' The 'max' would end up being a 0 and thus 0 is returned.
Loading more items...