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.
str
turns the integer into a string. It's the difference between the number55
and the string"55"
. To check whether the string"5"
is within the number, you first have to convert the number to a string by usingstr
.This comment is hidden because it contains spoiler information about the solution
That's why this kata is easy, and this one is not: https://www.codewars.com/kata/621f89cc94d4e3001bb99ef4
How can you solve it without creating an array?
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Test cases should look like this
Test.describe('Sample Tests!')
test.assert_equals(expected, actual)
And, it should show an error as you are passing
1
as the expected value and2
as the actual value!! [The test fails and therefore it shows an error]There are no errors, and no outputs. The output only shows the time, 0 passing test, 1 failed and 1 error.
I try the same thing with shell and C#, and it works fine
What does the error says?
Hi there,
I'm a new on the platform, and used to write python code.
It seems I can't make the test runner run properly: even an Test.assert_equals(1, 2, "1 not 2") just report a failure and an error.
Any clue ?
Ohkay! Thanks again! I guess I don't have enough honor now, as I cannot see that option around "Add to Collection". Need to work on increasing my honor! :)
Actually you both aren't talking about the same thing, amiarunava: you can edit the translation, yes, but the "kata edit panel" is accessible from the discourse or solutions pages (top right corner, near "add to collection"). Not the same thing. If you cannot see it while you wrote a trnaslation that has been approved, certainly this is that you do not earn enough honor at the moment, as myjinxin2015 said.
Cheers!
As I said, I am able to edit. But while editing the approved python translations, due to a issue in Codewars, The edit is unaccepted.
Next time, I will just fork the previous version and publish the updates(if any). This situation won't occur the next time. :)
You can not edit kata?
Well, you need earn more honors to activate this permission ;-)
My fault, @myjinxin. I would have fixed it when you asked for but was unable due to this bug.
Loading more items...