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.
Still you're not saying what's wrong with the test.
What to do is already in the description, how to do it is your work. Is that test different to the others? Yes. Is it wrong? No.
I had to pass this by hacking it by looking at the output of the final test case that wouldn't pass.
I don't think so. And you've passed the kata, so... Why do you think it is wrong?
The test case is genuinely wrong.
Got it
Interesting, but way too difference from regular 8kyu. Needs a hint about default values.
The part where the function is called without an argument, like you need to do here. Just scroll a little bit and you'll find it.
Uh... Which part?
This comment is hidden because it contains spoiler information about the solution
I honestly have no idea how to do that. I tried a loop, but...
Now you have to work out, how you can make the code work if no argument is passed to it.
And.... now it gives me a TypeError, like last time.
How?
You probably edited the sample tests, backup your code, click Reset, paste it and try again. Not a kata issue, the sample tests are fine in Python.
I put in code, but when I tested it, it gave me this error:
Traceback (most recent call last):
File "/workspace/default/.venv/lib/python3.11/site-packages/codewars_test/test_framework.py", line 112, in wrapper
func()
File "/workspace/default/tests.py", line 18, in basic_test_cases
test.assert_equals(hello(nna), "Hello, World!")
^^^
NameError: name 'nna' is not defined
This is not a part of my code, it is part of the sample tests.
Loading more items...