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.
This comment is hidden because it contains spoiler information about the solution
There is some edge case that makes your function enter an infinite loop.
How would that be possible?
Read again the conditions part of the kata's description, are you validating those values correctly?
Python 3.10 does, and is enabled for this kata
No problem and good job solving! You can use this on any kata if you want to debug from failed tests.
You can always print the test inputs to console:
Link to Troubleshooting documents - How to print the input
In Python you can do it as follows:
Print the input: https://docs.codewars.com/training/troubleshooting#print-input
This comment is hidden because it contains spoiler information about the solution