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.
The secret is to test every aspect of the problem. Then, you have to go to GPT or Stack and figure out .name even exists. Not a level 8, but curcial stuff to learn
This was brilliant
.
User solutions that return wrongly typed values are just bad, and the error message is quite explicit.
Maybe if it were an
8kyu
kata I'd expect tests to mollycoddle solver, but this one, a6kyu
- well, not really.Other opinions (!) are doubtlessly available.
I would keep the issue open. Tests which crash on an unexpected value returned by user solution are just bad.
Tests should properly inspect returned value for correctness and not just crash.
Not a kata issue. The error is pretty clear about the fact that your function returns nothing.
Hello I get Traceback by just printing values
My CODE on PYTHON 3.8:
def two_sum(numbers, target):
print(target)
Output:
Test Results:
Log
4
STDERR
Traceback (most recent call last):
File "tests.py", line 3, in
test.assert_equals(sorted(two_sum([1,2,3], 4)), [0,2])
TypeError: 'NoneType' object is not iterable