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.
Because what your function returns is compared to the expected values in the tests.
Thanks a lot . Works fine now !
And may i know why the function should return output instead of printing it ??? What is the reason behind it
Your function should return, not print the result.
Test Results:
Log
1
0
None should equal 0
Log
1
I am getting test results like this. Can anyone help me to get through this error?