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()
displays the output to console, so you will see it at the left panel displayed. But there should be an equivalent code likeNone should equal ...
just below the message because you did not return anything back to the function caller, so the value isNone
. If you had bothprint()
andreturn
OTOH, the output will be smtg like: (if your code fails)Otherwise, ...
OP solved it, closing
The tests (depending on the language) use boolean and other kind of values than can be coerced to booleans, that's why the
ish
is added there, it could be used Truthy instead. Removedboolean
from description and used truthy instead.vocabulary.com says "Words ending with the suffix -ish are often adjectives, but this suffix has several senses. The suffix -ish is flexibly used with a base word to denote 'somewhat, somewhat prone to, or somewhat like.'"
Booleans are not somewhat true
You have passed the kata, you know you can forfeit a kata to see solutions don't you? I hope you understood the kata was fine.
Not a kata issue, your function isn't always returning a string.
Before creating an issue, please, check the kata's Details and see how many solution are for your language:
With that many, there is almost no chance the problem is in the kata.
No, that's not what you should be doing at all, not a kata issue.
It works fine.
No, that's a problem with your code, the number of arguments is not fixed to 3, see the sample tests.
No, it doesn't work like that at all, you're comparing a tuple of one element to a list and doing nothing with that. To avoid frustration, I'd suggest you review how to loop through a list, and follow from there. Read the docs, programming isn't typing random code until it works. Sorry if that sounds harsh, but your code doesn't make sense right now.
When I posted my reply, your code had a print, not a return, and what is this?
("True") == sheep
Read the error message:
And from the kata's description:
Print the input to debug your code.
Please don't raise issues so lightly. Issues are problems with the kata itself, not a problem with your code. Read this: https://docs.codewars.com/training/troubleshooting/ your function isn't returning anything.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
That solution isn't broken, yours is. You copied and pasted the code and didn't even look at the argument's name (it's different). Look at that whole solution again.
@anthono your code accepts an input called
boolean
but then you later use a (nonexistant) variable calledbool
, which is why your code is broken. There is nothing wrong with the kata.Loading more items...