Ad
  • Custom User Avatar

    Maybe the description has been updated since this comment was left here but I understood it to describe that scenario as it is written.

  • Custom User Avatar

    Please mind your language.

    Won't ask twice.
    Thank you.

  • Custom User Avatar

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

  • Custom User Avatar

    One of the tested inputs is null. Your function needs to be able to handle it, but as you have it written now, the function fails because you try to find the length of null.

  • Custom User Avatar

    how. in the loop we go through the array and the length is set there correctly, as I understand it. further, if the value is greater than the lesser and less than the greater, we add it to the variable sum. I don't understand where the error is, I'm a beginner developer.

  • Custom User Avatar

    Read the error message: TypeError: Cannot read property 'length' of null it's not the length what is null, it's the value passed to your function, and null has no length.

  • Custom User Avatar

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

  • Custom User Avatar

    first of all this should not be 8kyu otherwise noone would complain ...
    second thing wrong description as always... you said add up the nums except the smallest and largest but!! if you have a 2 item array then you end up with an empty array,
    and it should be like if the array length is less or equal to !2! then return 0..
    and it does not make sense so please next time write a well defined desc.

  • Custom User Avatar

    sample tests are obviously wrong please fix this kata (sq should be False) and (adfa should be False) as well . And the last test too wtf mate. I think palindrome is a string that is spelled same from backward as from forward correct me if I am wrong. so if you have = CABBAC then its true because you reduce the string length by 1 from the front and the end too like this == CABBAC -> ABBA -> BB -> ''

  • Custom User Avatar
  • Custom User Avatar

    every test passed except the last why????????
    [46, 78, 574, '287', '3', '423', '69', 'Apple', 'Grape', 'Peach'] should equal [46, 78, 574, '3', '69', '287', '423', 'Apple', 'Grape', 'Peach']
    this should be good

  • Custom User Avatar

    please fix the description its no way to figure out what you want from us at 7kyu dont make me cry lmao

  • Custom User Avatar

    obviously not for this level

  • Custom User Avatar

    You need to switch Python version to 3.8 when submitting.

  • Custom User Avatar

    WTF I just did it and I got this error...

    Traceback (most recent call last):
    File "main.py", line 2, in
    import codewars_test as test
    ModuleNotFoundError: No module named 'codewars_test'

  • Loading more items...