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.
your probably doing a comparison wrong. its >7 not =7
It is not an issue of the kata. The test are the same in all languages and 5777 guys passed the kata (123 in PHP). Mayve you should have a look at your code?
Output strings is equal to test examples, but "Failed asserting that null matches expected". Im stucked.
The 'Solutions' tab on your profile allows you to look at all of your solutions to all the Katas you have completed.
I hope I helped ;)
Welcome to Codewars!
You need to
return
your final solution instead ofprinting
it. Returning a value allows it to be checked for equality, whilst printing it just outputs the value locally to the console. You need to compile your return value into one last statement which will be a string.All of the Katas on this website work like this
Also, (from your other comment) if there is a problem with the Kata/you have a question about the Kata, I suggesting commenting on the Kata and not on the forums (which is for site problems/issues). I recommend using 3 backticks (`) to display your code, read more here.
This comment is hidden because it contains spoiler information about the solution
Hi, I just joined and solved my first kata -- which when I view my profile I see as a completed kata. However, I wanted to peruse my solution again, just mainly for curiosity, but when I try to view solutions to this "solved" kata the system says I can't view them since I haven't yet solved the kata. Am I doing something wrong, or is this a bug? Thanks, and cool site.
UPDATE: Maybe I was doing something wrong - if I click on the kata and then solutions, it says that I can't see them as I haven't solved (though I have); but if I click on my profile, then 'solutions' from my profile, I do see my submitted solution. Maybe that's just the way things work, though it was a bit confusing. Perhaps working as designed?
i solved the training module called "mumbling"
my answer is identical to the solution but its saying its wrong...
what do i need to do
import sys
def accum(s):
# your code
i = 0
j = 1
while i < len(s):
a = s[i] * j
sys.stdout.write(a.title())
sys.stdout.write("-")
i += 1
j += 1