Ad
  • Default User Avatar
    1. print the inputs, so that you can see them in the console
    2. with that point above, "6 should equal 5" tells you all you need to know: 6 is what your code returned, 5 is the expected value.
  • Default User Avatar

    just add print('something') to your code. Also make sure the code doesn't time out by including something like if b > 1000: return 'stop'. This way you will see the printed output.

  • Default User Avatar

    The point is that you learn how to debug your own code, receiving inputs you don't know about. Here, on CW, you're not on codefight: you can print/see the inputs of the "hidden" tests... ;)