Ad
  • Default User Avatar

    filter() returns an iterator, so it has to be turned into a list to match the output format

  • Custom User Avatar

    6 is the expected value of the previous test, for that test it's -1. If you're printing the input, it's shown before the test result, not after.

  • Default User Avatar

    Test data No.7 for Python seems to be incorrect. The correct output for this data set "range(100)" is -1 (stated in the test function) while the checking system said the correct answer should be 6. What may be the reason here?