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.
Dude... WHAT? You just hardcoded every possible result?!
(int)dotChar-65
yeah, accidentally i returned None when n and the list size were equal. you were right
i solved the kata and all the tests are ok. but when i click the 'attempt' button i get this error:
Traceback (most recent call last):
File "/runner/frameworks/python/cw-2.py", line 111, in wrapper
func()
File "main.py", line 30, in edge_case_tests
assertFloatArrayEqual(moving_average([50,51,52,53,54],5), [52.0])
File "main.py", line 12, in assertFloatArrayEqual
raise e
File "main.py", line 5, in assertFloatArrayEqual
final = [abs(x[0]- x[1]) < epsilon for x in zip(actual,expected)]