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.
Read this: https://docs.codewars.com/training/training-example and this: https://docs.codewars.com/training/troubleshooting
This comment is hidden because it contains spoiler information about the solution
Approved
See How to train on a Codewars kata.
Prolog translation
Wow, i used 'main' and didnt know why it wasn't work, i was loose so much time. ಥ‿ಥ
you need to return a value instead of print it
This comment is hidden because it contains spoiler information about the solution
Your function name is wrong, it is
countSheep
with a capitalS
. Additionally the capitalization of your result is wrong and you have the wrong output fornum = 0
.Please read this: https://docs.codewars.com/training/troubleshooting#post-discourse
Normally you count sheep starting at 1 and then going upwards.
This comment is hidden because it contains spoiler information about the solution
New to Code Wars, My solution looks exactly like the solution given unsure why my test attempts are failing
Why can't I use in my codes 'print'? Only return.
This comment is hidden because it contains spoiler information about the solution
Loading more items...