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.
Read the notes, it is specified the input can only have one digit numbers. So, changing the specs or the tests after approval would be wrong.
Test case suggestion: All the test cases have single digit scores. A wrong solution is possible by using the first and last characters of the 'x:y' string. Recommendation is to increase the range of the random tests or include an explicit multiple digit score.
One of my favorite jokes: If you have a problem and you think regex is the solution, now you have two problems.
Nice solution.
I'm new to python, and I'd not seen the floor division operator before. Thanks for this solution. It gave me something to research. I am now a bit smarter about things. I appreciate it.
I'm still new to slicing in python. This solution has a couple great examples. Thank you. I appreciate it.
This comment is hidden because it contains spoiler information about the solution
This is an excelent use of String Slicing in Python