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.
I've just copy/pasted your code in the trainer, but that isn't returning any error.
You're supposed to return number, right now you're return a string.
You've to write the function
evaluate
as a method inside the classCalculator
, the code is still incomplete.You're supposed to write a function, and there aren't any in your code.
It is impossible to read the code without markdown formatting.
I guess you used print.
I also forget to change it to return at times.
Okay, but if you gonna timeout then don't raise that as an issue.
If all language version stick to similar difficulty level, then I am sorry, but it probably won't ;) You can still try though.
.as_integer_ratio()
was a new change in python 3.8, and this kata uses python 3.6, that's why you are getting the error. You might wanna check fraction module in python.But anyway, this kata has nothing to do any of these.
Read this: https://github.com/codewars/codewars.com/wiki/Troubleshooting-your-solution are you by any chance printing the output instead of returning it?