the output makes no sense: no trailing space for the pyramid, but one trailing space for each level...!?
the user isn't interested in the actual output strings, but in the global shape => the description isn't showing it properly. Note that the trailing space must be explained, if not removed (but keeping them would just be... a bad idea...)
far too close from a lot of kata (I bet an exact duplicate exists, but good luck to find it...)
test.assert_equals(solution.find(' in ') +1, 0, "Your solution has the in keyword!")
test.assert_equals(solution.find(' is ') +1, 0, "Your solution has the in keyword!")
Traceback (most recent call last):
File "/workspace/default/src/codewars-test/codewars_test/test_framework.py", line 111, in wrapper
func()
File "tests.py", line 16, in test_oldest_second
test.assert_equals(results1[1], 78)
NameError: name 'results1' is not defined
C++ Translation
This comment is hidden because it contains spoiler information about the solution
Description should be language-agnostic
Hi,
pick your weapon:
These tests are insufficient -- see my solution
...and the 2nd one has typo, too: "in" --> "is"
Duplicate.
There are a function and an operator built-in for this. How does this make a kata?
what's the point?
no random tests
In the way as you posted, it's unsolvable. The name of the function is wrong, and a mistake in the tests
Inconsistency in the name of the function in the sample test section and initial solution.
This comment is hidden because it contains spoiler information about the solution