I had this problem too.. some time
you should watch the topic "Default arguments in Python"
This comment is hidden because it contains spoiler information about the solution
Change language version to 3.8
got below exception on python 3.6, is there something i missed?
Traceback (most recent call last):
File "main.py", line 2, in
import codewars_test as test
ModuleNotFoundError: No module named 'codewars_test'
Swift translation kumited. Plase review and approve :)
Ruby translation kumited :) please review and approve ~~
you can alter the method's n parameter to get it to work. I looked up how to check if there is no argument passed in a function and you can use the keyword "None" to check if arguments were passed. Hope that helps without giving too much of an answer away.
You need to handle this test case, where there are no arguments passed in: test.assert_equals(arr(), )
TypeError: arr() missing 'n'
It is not at all clear what is exactly your question, but there is no issue with the kata.
arr() missing 1 ..."n"
give me a little hint of a solution.
I try "try/except" however it doesnt work.
Have no idea how to resolve.
ArgumentCountError : Too few arguments to function arr(), 0 passed in /workspace/default/tests/ExampleTest.php on line 5 and exactly 1 expected
'Looks like you've solved it'