Ad
  • Default User Avatar

    good idea for i - 26

  • Custom User Avatar

    Thank you so much brother

  • Custom User Avatar

    You are failing the case when the input is blank.

  • Custom User Avatar

    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.

  • Custom User Avatar

    For input: 'theStealth_warrior'

    Expected: 'theStealthWarrior'

    my code is returning the same string but Test is not passed, I don't know why

  • Custom User Avatar

    Read the test your code is failing, it's there in the error message.

  • Custom User Avatar

    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..

  • Custom User Avatar

    '((((((' is your output, ')))))(' was the expected answer, print the input to know what it was.

  • Custom User Avatar

    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 )

  • Custom User Avatar

    Thank you sooo much. May Allah bless you ameen

  • Custom User Avatar

    Did you select python at the top?

  • Custom User Avatar

    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?