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.
See my other reply.
In short, when this error occurs, this means that the tests expected to receive an equation string from
equal_to_24
, but instead got"It's not possible!"
, and theSyntaxError
is raised as a result of callingeval
.This is a known issue with the code runner which is not specific for this kata. I will mark your report as resolved, and there already are corresponding tickets on CW's Github.
There seems to be an issue with the test: I was working on my algorithm, trying out a modification and suddenly I had "passed" the tests - only that there were only 2 of them that had run, and very basic ones... Not sure what causes this on the back end, though. The only thing that I could think of is an "exit()" statement in my code, that I was using for debuggin.
In Python, it seems I had the same problem as some others as well: In the random tests, my result was sometimes off by 0.01. This happened a few times, every time on only one of the tests. I was able to pass by attempting a bunch of times though...
This comment is hidden because it contains spoiler information about the solution
I also found this comment by the author below. However, I don't understand how these 2 examples are considered the same. It surely can't be because the result is the same ...
This checks the automated test, but not a human.