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.
good idea for i - 26
Thank you so much brother
You are failing the case when the input is blank.
No,
'theStealth_warrior'
is what your function returned, not the input. At least in javascript (you didn't say) there is no test with such input.For input: 'theStealth_warrior'
Expected: 'theStealthWarrior'
my code is returning the same string but Test is not passed, I don't know why
Read the test your code is failing, it's there in the error message.
Hi,
I am following all the guidelines. My function is clearly returning an output and I am clearly getting correct results
of the following strings :
"the-stealth-warrior"
"The_Stealth_Warrior"
'the_Stealth_Warrior'
I am getting the following results:
theStealthWarrior
TheStealthWarrior
theStealthWarrior
but still , I am getting the following error:
STDERR
Traceback (most recent call last):
File "tests.py", line 5, in
test.assert_equals(to_camel_case(''), '', "An empty string was provided but not returned")
File "/workspace/default/solution.py", line 11, in to_camel_case
n=k[0]+n
IndexError: list index out of range
I even run my code at https://www.w3schools.com/ and its giving right results..
'(((((('
is your output,')))))('
was the expected answer, print the input to know what it was.Hi,
something wrong with the submit.
All my test ok but when I submit it says
'((((((' should equal ')))))('
but instructions says that any character more than 1 time should be displayed as ')'
My output is
))))))'
which is just according to instructions as all ( comes more than 1 time so they are all converted to )
Thank you sooo much. May Allah bless you ameen
Did you select python at the top?
hi,
my function is working fine on my computer but when I paste it in the solution the test shows error.
Is it because I deleted the following lines in the solution window i.e:
comp = (array1, array2) ->
your code
I wrote my functions as:
def comp(a, b):
return --
I deleted the solution window and pasted the above function...but the test says error at def comp(a, b):..
Why is it like this?