Ad
  • Default User Avatar

    I'm not sure if this is my fault or not, since I'm new to coding, but when I try to do the test, the test itself seems to cause an error...

    File "", line 10
    Test.describe("More tests")
    ^
    SyntaxError: invalid syntax

    Is this my fault?

  • Default User Avatar

    Anyone managed to complete this in Java? I am not sure how to return 'undefined' from function which return int.

  • Default User Avatar

    In Python random tests:

    Testing for [-7, 0, -1, True, True, True, 3, True, True, -4]
    It should work for random inputs too: -312 should equal None

    That's interesting because bool is an int but at the same time may not be considered a number. Whatever the intended expected behavior is, I suggest that there should be a static test like this.

  • Default User Avatar

    729 is what was returned, None is what was expected, the argument is not printed by the tests but you can print it yourself if yoy want.

  • Default User Avatar

    Hi, sorry if this is a really basic question, I'm quite new to the site.

    I've tried making a code for this but I keep getting the error "729 should equal None"

    Does this mean that cubeodd([725]) should return None? If so, is this because for it to be a "sum" it should have at least two or more components?

    If that's the case I added a bit to the code to return None if the input only contains one element. But I still get this issue. I've tried it in a third party program and it returned None with the input of [729]