I looked up default arguments and I had played around a bit, still recieving exit code errors. Should I look more into positional arguments than default? (as my error code mentioned positional arguments)
Test Results:
Example Tests
Test Passed
Test Passed
Test Passed
STDERR
Traceback (most recent call last):
File "main.py", line 14, in
test.assert_equals(hello(), "Hello, World!")
TypeError: hello() missing 1 required positional argument: 'name'
If you look at the description, it is stated that your function should support that operation.
(There are also several comments about this already, please read other comments before creating an issue.)
I passed all the tests but gave me this error
STDERR
Traceback (most recent call last):
File "main.py", line 14, in
test.assert_equals(hello(), "Hello, World!")
TypeError: hello() missing 1 required positional argument: 'name'
'Looks like you've solved it'
Clojure translation
https://www.codewars.com/kumite/5fb525cb564ec00021b5b86f?sel=5fb525cb564ec00021b5b86f
I don't mind having to fix the function as well, but it should be included in the instructions.
Needs more random test cases for javascript.
Read this https://github.com/codewars/codewars.com/wiki/Troubleshooting-your-solution if you require more help, follow the instructions on how to post your code. You're doing something wrong.
I looked up default arguments and I had played around a bit, still recieving exit code errors. Should I look more into positional arguments than default? (as my error code mentioned positional arguments)
papi_jean why are you answering something completely unrelated to him/her?
just_noodling_along google
default arguments
Someone commented on mine: "Because you try to apply a string method to a number."
Though I'm still confused ha!
This comment is hidden because it contains spoiler information about the solution
Because you try to apply a string method (title) to a number (0). Use an empty string, not 0.
This comment is hidden because it contains spoiler information about the solution
Your code should handle that test too, it's not a problem with the test.
In python doesn't work fine...
Test Results:
Example Tests
Test Passed
Test Passed
Test Passed
STDERR
Traceback (most recent call last):
File "main.py", line 14, in
test.assert_equals(hello(), "Hello, World!")
TypeError: hello() missing 1 required positional argument: 'name'
Loading more items...