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.
OMG! Thank, so much for you advise! I spend whole day for understanding what is wrong with my code. But now, I resolve it within 5 minutes. You are my sensei. OZZZ))
Approved.
Hi and welcome to Codewars - it seems that this is your first kata, so just to help you troubleshoot what's going wrong: you need to
return
your answer to the Codewars server, not justprint
it to console/screen.So in your current solution, if you replace all the occurences of
print
byreturn
you should already be in a much better position to debug any eventual problems in your code.Also here is the useful Troubleshooting Guide that may help you in any later katas, if you have some problem with errors etc.
stupid task, any outputs doesn't agree.