Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
print
the inputs, so that you can see them in the console"6 should equal 5"
tells you all you need to know:6
is what your code returned,5
is the expected value.just add
print('something')
to your code. Also make sure the code doesn't time out by including something likeif b > 1000: return 'stop'
. This way you will see the printed output.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... ;)