I solved the problem according to all the conditions. What does this inscription mean: Imagine using str in your solution: 'str' should equal False? All tests have been passed. And I didn't use STR!
Traceback (most recent call last):
File "/workspace/default/tests.py", line 13, in
test.assert_equals(eval(equal_to_24(13,13,6,12)) , 24)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1
It's not possible!
^
SyntaxError: unterminated string literal (detected at line 1)
You write: "The order of letters in the result is not important". But your result is sorted! Such an inaccuracy in the description took me the whole evening. This needs to be fixed.
The behavior of the code in case of exceptions is completely not described. The task is a puzzle. And a waste of time.
I can't understand why the ROUND function doesn't work? :(
The task is simple, but the logic of the code is hidden in an extremely unsuccessful presentation of special rules.
Thanks.
How can I remove an incorrect solution made due to imperfections in random tests?
Hmmm... Thanks.
I solved the problem according to all the conditions. What does this inscription mean: Imagine using str in your solution: 'str' should equal False? All tests have been passed. And I didn't use STR!
I don't understand what could be the matter. Some random tests fail. Easy code... Python.
It's magic! But your test didn't accept my answer until I sorted it.
7 kyu?.. Realy?!! Maximum 5!
Hmmmm...
Traceback (most recent call last):
File "/workspace/default/tests.py", line 13, in
test.assert_equals(eval(equal_to_24(13,13,6,12)) , 24)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1
It's not possible!
^
SyntaxError: unterminated string literal (detected at line 1)
How it possible???
In this example, there are three independent groups of brackets that are expanded sequentially, regardless of the nesting level of each:
'9 + (0 * 0 + 8 + 6 + 2) + ((9 + 6 * 8 * 1 + 2) + 8 * 7 * 1 + (6 * 4 * 1 * 2 * 5)) + ((1 + 1 * 9 + 0 + 0) + (2 * 5 + 4 * 9 + 7) + (0 * 0 * 0 + 5 * 5) * (1 + 5 + 1 + 8 * 9) * (9 + 0 + 7 + 5 + 7)) * 5'
You write: "The order of letters in the result is not important". But your result is sorted! Such an inaccuracy in the description took me the whole evening. This needs to be fixed.
I understood. The test asks for a list of lists. Even if there is only one solution.
My solution works for me in Jupiter Notebook. But something in your tests does not allow it to work out correctly. Check it, please.
Loading more items...