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.
Just like how alphabets are handled.
As posed, this kata cannot be solved in Python.
The instructions say to "extend the string object", such that the syntax 'this is a string!!'.toBase64() would work.
But 'this is a string!!' in Python is a built-in object (str), which cannot be extended.
And behold, the test case doesn't make use of any "string object extension" but simply tests for the function toBase64(),
which is not part of any class of course.
The instructions should be amended to clarify what one should do for Python.
How does the encoder is this kata is supposed to handle special characters?
According to base64 index table the only special characters it contains are + and / yet in kata there are tests with other special characters like - .