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.
Thank you for you comments. I have already fixed what you pointed out.
For some reason an actual apostrophe symbol (
’
) is used instead of a single quote ('
), but it's not mentioned in the description, and they're almost indistinguishable visually (unless you stare hard enough into those pixels to notice that something's off). Have fundebugginglooking at 2 identical strings trying to understand why you can't pass the tests.Duplicate of any other "format variable into a string" kata.
Description formatting is wrong.
No random tests.
No sample tests.
Please, before saying it has nothing to do with your issue, have you tried your code with a single digit number? I've added the if and your code worked.
Note that in your properly formatted code, you have
n_ st
and it should ben_st
instead.you are right, i forgot to include it but it has nothing to do with my issue.
Your code is failing with single digit numbers. Why did you remove the if?
This comment is hidden because it contains spoiler information about the solution
Thank you for advices, I am new on this platform. You didnot get it right, i updates only in else, so it is
it is not resolved. It passes all the test everytime. there is 0 failed. But Exit Code: 1 is still there
Mark your post as having spoiler content next time, please. And also, it's a problem with your code, so use Question instead of issue, see how many Python completions there already are:
When posting code, try using proper markdown too, because in Python indentation is important.
If what I think is right this is the output to the console with your code (I had to guess how the indentation was because it was lost):
And you can see when you use this:
The index (-3) is out of range.
This comment is hidden because it contains spoiler information about the solution