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.
https://www.codewars.com/kata/59f7fc109f0e86d705000043/train/python
Intructions given do not match the expected results. Modulo % shouldnt be used, that one is clear, but "/"? AND "//"? AND any other math module methods available?
Please accept my code proposal or adjust the task instructions
I'd just like to say this still hasn't been squared away. "/" and "//" are still disallowed but there's no mention of it in the rule set.
This comment is hidden because it contains spoiler information about the solution
It does not allow using eval() too
approved
COBOL translation + removed "You can expect all test case arguments to be strings representing values greater than 0." from the description, this is not enforced in the majority of languages (all those I've controlled, so maybe it's not enforced anywhere).
no, that's the other way around. See issue just below.
This comment is hidden because it contains spoiler information about the solution
This seems to be only enforced in Python version. Who added this pointless check? You either add it to all language versions, or just don't add it.
Thank you!
Actually the description doesn't even say the use of modulo is forbidden, it says try to avoid, which doesn't make sense. When I solved the kata (not so long ago), we could use the modulo operator and the kata was ridiculous. Now it's the contrary... Well you're right, the description should state explicitly the kata's restrictions (for each language) and currently it doesn't.
Python 3.8
Please say which language you're using when reporting issue, asking for help, etc.
The description states that only modullo operator is prohibited, while the actual tests also limit the use of division operator and divmod.
Please fix the description to match the test cases. It is not fun spending time on solving a problem
correctly
only to find out the solution is not allowed.Nice one without % operator =)
Loading more items...