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
nice use of staticmethod, as the method does not access any members of "self". imo, this kata should be a function rather than a method.
very nice documentation, i like
you can remove the square brackets to turn the list comp into a genexp. it's just faster and more readable.
ha, nice one, almost have the same solution
nice touch but i think raising an exception would be even better ;-)
not best practices because it mutates the input
inspired by FArekkusu's solution https://www.codewars.com/kata/reviews/5c5abf5d052d1c0001b22ce7/groups/5f9f0591eb34720001cb3ff6
why not use genexp?