Ad
  • Custom User Avatar

    It is related to it, you have to write your code in order to avoid that error, not a kata issue.

  • Default User Avatar

    Looks like you are missing an aterisk in function parameter.

  • Default User Avatar

    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 9, in basic_tests
    test.assert_equals(add(), 0, 'No arguments should return 0')
    ^^^^^
    TypeError: add() missing 1 required positional argument: 'arr'

    I am having this problem. I think it's not related to my function or is it?

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Default User Avatar

    Hello, firstly thank you for the exercise but it was a little bit tricky for me to understand at the beginning. Because I first thought that you want from us to compare the amount of letters in the word. Then I figured out that I should compare the places of the words not the amount of letters in the word. If you add some more explanations about this it might be better for the other users.