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.
I could have used an easier way of doing this, but it wouldn't be so interesting...
Even though it's more code, I thing it's interesting to check next and previous elements, then returning the different element at once.
Just what I came up few seconds ago...
Maybe not the most efficient but, I mean, first passing all the tests, is what matters most :). Improving is another step though.
I've seen a solution using F strings, and it made me feel so dumb :')...