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.
You can use f strings. It doesn't require str(), and it looks more readable.
but it works, so.
Mapping
str()
onto list slices is more readable:No casting is needed, Object is mother and father of all types :-)
Please use spoiler flag next time.
This comment is hidden because it contains spoiler information about the solution
Could somebody please explain, why don't we have to convert the string to Object type, whereas it is a necessity when we return false in this Kata? I guess it's because the Object type is a class-generated type (not an object type as such, the one that begins with lowercase), but i can't think this through any further.