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 does not make sense that division by 0 should result in 0 - in fact, in mathematical terms it could result in any number up to infinity. I think you should not test for division by 0, or at least have an error be saved in the result variable, e.g. 'Zero Division'
There is a lot of writing out dictionaries, maybe you could include this in the given code?
This comment is hidden because it contains spoiler information about the solution
It would make more sense for the modulus dunction to take only one variable, not 2. Also, it would be helpful if the function of some functions, such as the exponential function, were made clearer.
overflow error??!!
This is incredibly concise yet still understandable, very impressive! Could do with an explaination of the logic though.
lovely and concise, but I find the variable name 'res' unclear. Variable names don't need to be shortened just to save a couple of characters in the code.