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.
Traceback (most recent call last):
File "/workspace/default/tests.py", line 5, in
test.assert_equals(x(2), [[1, 1], [1, 1]])
File "/workspace/default/.venv/lib/python3.11/site-packages/codewars_test/test_framework.py", line 35, in assert_equals
expect(actual == expected, message, allow_raise)
File "/workspace/default/.venv/lib/python3.11/site-packages/codewars_test/test_framework.py", line 19, in expect
if passed:
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()