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 description wasn't sufficient imo.
I did not understand, that I needed to set a default value, to pass the test cases.
Did you read the error message? This is the test your code fails:
Try in your IDE calling your function
hello()
and see what happens there.This comment is hidden because it contains spoiler information about the solution
Nice kata!
However, I think it would be nice to specify that the very first line of the code has to be modified as well, as it's incorrect.
I think the problem should have been phrased "Write a function", instead of "Write a method." Using a method will require one to create a class and then a method called 'hello'.
Creating a class still works, though.
getting an error when using method. Disregard... Human oversight!
Fixed
kata hint != kata suggestion
for those having trouble try implementing an if, else if to check for test cases.
The tests are fine, it's your job to make that work:
Tests function is incorrect:
TypeError: hello() missing 1 required positional argument: 'name'
I dig this
It's your code's job to handle that case too.
In Python, one of the test cases try to call the function without an argument and fail.
Very difficult and interesting! I learnt a lot of new stuff!!!
Loading more items...