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
It is Slicing. s[a : b] here a is index and b is negative index. After slicing it will return value from index a(inclusive) to b(exclusive).
It is not necessary for b to be negative everytime. You can check out docs: https://python-reference.readthedocs.io/en/latest/docs/brackets/slicing.html#slicing
Please see if you can find anything helpful in this paragraph: https://docs.codewars.com/training/troubleshooting#works-but-no
This comment is hidden because it contains spoiler information about the solution