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.
Edge cases are missing in most languages, e.g
XIV
andXIX
. Solution that handles them incorrectly can still pass all the tests.Re-raised this issue because lots of languages do not have random tests.
Most languages do not have random tests.
Not an issue.
Not an issue.
wow
someone hacked the main frame!
This was very challenging... I'm sure that my answer wasn't best practice but i'm happy I worked through the problem and passed the kata!!!
This comment is hidden because it contains spoiler information about the solution
Thanks @deantwo after fixing those to issues that you mentioned I was still experiencing the same error message. After debugging a couple times I realized that when converting the string to an integer the negative sign is not assigned to the number. So when the numbers are converted to the list the negative sign is assinged its own index, example: high_and_low("-1 2") would be converted to ['-','1','2']. So the int() method can't intereate over the negative non integer value.
The method is incorrectly named
high_low
, it should be namedhigh_and_low
.You should be doing
return
instead ofprint()
.This comment is hidden because it contains spoiler information about the solution