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.
Pretty anything immutable. Tuple is great.
Its definitely not a problem for kata itself, rather developing bad practice for greenhorns. IMO, for sure.
Passing list as argument to function is kind of antipattern for python in most cases
Last testcase (
test.assert_equals(is_prime(-1), False, '-1 is not prime')
) have nothing to do with prime numbers. Primes is positive by definitionThis really shouldn't be neither "best practice" nor "clever". Memory usage here is insane, doesn't worth any readability (if there's any here)