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.
This one is actually having lowest complexity compared to all better rated solutions!
agree
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
me too, struggling
THANK YOU!
I was absolutely stumped because of this.
I was using
photoManager.addName
withphotoManager.nameWasUnique
in my original implementation, and was frustrated with all of my checks resulting in false.Yes. But as you see, you could solve it from your code, the tests were ok.
This comment is hidden because it contains spoiler information about the solution
If you get that error, you didn't even defined the function.
I tried it and I got "NameError: name 'hello' is not defined", I don't know how that could help me.
What else can I do? I can only code what my fucntion should do, if the content of my function cannot help with this issue there's nothing left do d, since I cannot modify the test itself.
I like the idea of the Kata, but I do not think it is rigourous enough for 6-kyu. I pretty sure my answer is sloppy and prone to error but it passed all test.
Please, listen me once again: for the time being, it appears that it is NOT a kata issue. Checking for an empty string in solution IS NOT enough, your solution has to do SOMETHING MORE to account for this case. Your solution is incomplete, that's why it fails.
Also tell me if you did what I asked you: on your machine, in your IDE, call your solution like this:
hello( )
and see if it passes. If it fails, it means you need to add something to it. BUT if it indeed passes on your machine when called in this way (without parameter), but fails on Codewars, then it indeed is kata issue. In such case, we'd ask you to post your solution (hee here how) so we could pinpoint the problem. But for the time being, it seems to us that your solution is invalid, it is missing one special aspect, and it will fail not only on Codewars, but also on your machine, in your IDE, when called without parameter.
It IS a kata issue, even if your code checks for an emtpy arg it still raises the same error.
This comment is hidden because it contains spoiler information about the solution
Loading more items...