An easy fix for this is using an try/except statement, and set the number to 0 if an exception occurs. I think the description should be improved though
The kata was technically well done, but got retired. Most likely because of the lack of originality of the task.
If you're interested in authoring, you should read the docs about it, to get a better idea about what kind of task has better chances to get out of beta.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
An easy fix for this is using an try/except statement, and set the number to 0 if an exception occurs. I think the description should be improved though
This comment is hidden because it contains spoiler information about the solution
Thank you for the advice
Hi,
The kata was technically well done, but got retired. Most likely because of the lack of originality of the task.
If you're interested in authoring, you should read the docs about it, to get a better idea about what kind of task has better chances to get out of beta.
Cheers
I was worried about the program timing out but it worked pretty well.
Thanks for the advice, I implemented it.
Make a loop with 100 random tests instead.