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 comment is hidden because it contains spoiler information about the solution
Hey "lanceculnane". :-)
And now you changed it back to "Something"? Why?
I think the error message is really full correct. The value should be equal to -1. Your value is 1. So it is wrong. In the description it is said, that -1 is expectet in the cases of empty and null. So where is the problem?
You have had fun and a good challenge with this kata. So give a "very".
If you think, it was a bad and stupid kata, then give a "stupid" or "bad". But be honest and fair and do not a revenge voting, because your thoughts about the error message are not like mine and like the others.
Have fun at codewars. Learn. And become a wortful member of the great codewars community! :-)
I laughed way too hard at this :D.
@lanceculnane
,I did the Python translation for this kata and would try to help explain/fix any problem but your issue description is so vague that I don't know what you mean. The katas description clearly states:
If the string is null or empty, you should exactly return this value for the watch-methods and -1 for the count-methods.
watch
functions:None
, you are expected to returnNone
(null is equivalent toNone
in Python)''
, you are expected to return an empty string''
count
functions will only ever return-1
, if the input string isNone
or an empty string''
.Also, Your code example makes no sense to me? The input argument for the two
count
functions is a single string of characters orNone
, not an integer.I would try to help if you can be more specific about your problem. By specific I mean:
Mark as having spoiler content
underneath your comment (so you don't give away the solution to other users)Thanks!
Really?
you gave a negative ranking because you do not like the error message?
are you serious?
I don't see where is the problem...
What is your concrete problem?
Is this why you gave a negative ranking?
Issue?
Where is the problem?