• ###### ivymorenomtcommented on "Convert boolean values to strings 'Yes' or 'No'." python solution

I'm not sure but I had been doing this same code and i am getting an error

• ###### Hydra17commented on "Convert boolean values to strings 'Yes' or 'No'." python solution

It is not PEP8 compliant to use the == equality operator to compare values to booleans. We should use keyword 'is' instead.

• ###### Hydra17commented on "Century From Year" kata

Didn't exactly feel like an 8 kyu exercise. The implementation was simply enough, but the logic I feel like is a bit of a head scratcher.

• ###### Hydra17commented on "Multiplication table for number" kata

This comment is hidden because it contains spoiler information about the solution

• ###### rowcasedcommented on "Multiplication table for number" kata

Basically the line breaks serve to visually structure the final string, so there is no need for one at the end.

Approved.

• ###### Hydra17commented on "Multiplication table for number" kata

What was the reason for having the last line with no line break?

• ###### Ze-Marcoscreated a question for "Multiplication table for number" kata

Please review and approve my translation thank you for the good Kata.

https://www.codewars.com/kumite/5fc54a32b700aa0021307f59?sel=5fc54a32b700aa0021307f59

• ###### rowcasedcommented on "Multiplication table for number" kata

Here is the first sample test which shows an expected result having no trailing space. Following that, we can see the results of running your code which shows that you returned first, and then finally what is expected of the test. Your code is definitely producing a trailing `\n`, and the kata tests are correct.

``````Test.assert_equals(multi_table(5), '1 * 5 = 5\n2 * 5 = 10\n3 * 5 = 15\n4 * 5 = 20\n5 * 5 = 25\n6 * 5 = 30\n7 * 5 = 35\n8 * 5 = 40\n9 * 5 = 45\n10 * 5 = 50')

'1 * 5 = 5\n2 * 5 = 10\n3 * 5 = 15\n4 * 5 = 20\n5 * 5 = 25\n6 * 5 = 30\n7 * 5 = 35\n8 * 5 = 40\n9 * 5 = 45\n10 * 5 = 50\n'
#should equal
'1 * 5 = 5\n2 * 5 = 10\n3 * 5 = 15\n4 * 5 = 20\n5 * 5 = 25\n6 * 5 = 30\n7 * 5 = 35\n8 * 5 = 40\n9 * 5 = 45\n10 * 5 = 50'
``````
• ###### -?-commented on "Multiplication table for number" kata

I am facing that same problem...

• ###### Hydra17commented on "Multiplication table for number" kata

The expected result shows that the basic tests require the trailing '\n' to pass them. My code does not provide that. When I run my solution, it literally prints the exact result requested in the kata. Try it.

• ###### natancommented on "Multiplication table for number" kata

your function returns`undefined`, it should return a string
if you look at your error messages they probably tell you this