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.
Understood what the assignment was.
Can someone please explain what we're supposed to do? (english is not my first language) or atleast point me in the right direction?
Alright thank you! I am new here and this is my first time translating. I am not sure how I was supposed to go about it..
This comment is hidden because it contains spoiler information about the solution
W3schools article of functions might help you
Understood, Thank you.
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 14, in basic_test_cases test.assert_equals(how_many_light_sabers_do_you_own(), 0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: how_many_light_sabers_do_you_own() missing 1 required positional argument: 'name':
The basic test cases seem to have a problem (?) (Langugue: Python) My code passes all test except this one and this is the error I get when I run it. Even when I remove my code and just return it without any values (ie. pass) this issue still remains. I do not know whether I should mark this as an issue.
Thank You. That was a really concise explanation.
Why did you use @staticmethod on top of all the functions? (I am a newbie so pardon my questions)
I didn't think of that. Nice one.
Ah..My bad. Thank you.
Shouldn't it have been cleared in the instructions that the given numbers are strings and not integers? (avoiding the confusion as to why the code is returning something wrong even after using the max() and min() function) I am new here, so I might be missing something..