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 is so cool, I love it.
nice use of strings.TrimRight
Thanks rowcased for your reply.
I just attempted once again and this time I passed all the tests. :)
I dont know about the initial value because the test values were not visible.
Have a good day.
I passed every other test, but only the last small test sends this eexception:
Is it my error?
Unexpected exception raised
Traceback (most recent call last):
File "/runner/frameworks/python/cw-2.py", line 111, in wrapper
func()
File "main.py", line 45, in small_tests
test.assert_equals(check(prime_factors(number), number), True)
File "main.py", line 34, in check
actual = reduce(lambda x, y: x*y, [i ** j for i, j in zip(primes, power)])
TypeError: reduce() of empty sequence with no initial value
Brilliant. Good job!
Good solution!
I agree that the spacing must have been more generous.