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.
https://stackoverflow.com/questions/509211/understanding-slice-notation
What does string[1:-1] do?
Your code is broken, although you can't tell because your kumite doesn't even run it. The reason it is broken is because you have redefined
str
as a variable name, and yet still expectstr
to be callable within the function.