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.
it wont work right if N is odd and y is even, I think
Try to avoid this kind of code "for i in range(len(s))", the strings are iterable objects, you can simplify it this way "for letter in str", it will iterate every leter in the string. I had this error when I started with python and I did try to mimic C/C++ code.
Adding () will improve to read what is happening but, clever just genearte with X in middle
This comment is hidden because it contains spoiler information about the solution