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.
it's not a kata problem you need to filter out anything that isn't a number in kata there are no zeros.
.
An issue is a bug with the kata, this is not an issue. This is caused by your code. Try printing the inputs to see why your code is dividing by 0. Also, see the comment and reply directly below this one.
Why I get ZeroDivisionError: integer modulo by zero. How to address if a or b is zero?
The instructions only say 'If a and b are both numbers, neither of a or b will be 0.'
math.
logic.
How am I supposed to solve this kata without pow and **?
No ** allowed: False should equal True
No pow allowed: False should equal True
Not an issue a question. Please use the appropriate flag (see codewars docs if needed)
You're not using the input properly (did you see they are dicts?)
This comment is hidden because it contains spoiler information about the solution
Hi,
Not an issue, a question.
You can
print
them to the console from your solution.Cheers
This comment is hidden because it contains spoiler information about the solution
Use the numbers stated in the kata's description. Where did you get that
0.354
factor? Not a kata issue.Doesn't work for random values in Python.
For example, for mpg 8540, my solution gives 3023.16. It fails saying the right answer should be 3023.21.
Why this is failing?
Nobody said without a loop:
Reduce the number of cycles of your loop.
How to solve it without a loop?
This comment is hidden because it contains spoiler information about the solution
Loading more items...