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.
It might be because your pro_list contains strings so
pro_list[counter][1] != False
will always be true because you compare a string to a boolean. I think it was supposed to be!= '0'
.You do not pass all the tests. You pass some tests, and then time out.
I've seen it in other katas. Just consider it's time out.
So I've never had this happen before on CodeWars: my attempt both says that I'm passing all the tests AND that I'm timing out. Historically for me it's been the case that a timeout won't even tell you how many tests you passed or failed, but I can see the things I printed to console for each test and everything. I screenshotted it but can't upload the screenshot here. Not sure what to do.
Lol thanks man, really bricked on reading the directions there.
I understand.
is
only compares the objects,==
compares the values. Thanks!Change the way you compare the two values.
Can you format your code properly with whitespace/line breaks as can't follow it as is
Use the other formatting: https://github.com/codewars/codewars.com/wiki/Markdown-Formatting#sequenced-code-blocks all in one line is unreadable.
This comment is hidden because it contains spoiler information about the solution
Hint: Your solution will give "Automorphic" for 16 - 16 is not automorphic (reread the problem description to see why)
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Because there are zeros after the
False
. Check how your old code worked here: http://www.pythontutor.com/visualize.html#mode=edit with an input like this one:[1, False, 1, 0]
This comment is hidden because it contains spoiler information about the solution
Loading more items...