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
Thank you for the advice :)
The only solution that doesn't involve comparing to char '7' and actually uses math to solve the problem. Chapeau!!
The solution shall assert if the input is a string or not
For those who are riddled by this kata, you can google "mutable default arguments", I hope this helps
Please mention in the details that the input list shall not be mutated for the random tests to work in Python. My solution has a workaround for the test cases so that it could pass the random tests when they say the results should equal (0,0)