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 didn't know until now that you can directly join stuff to a string without introducing a variable. you learn something every day ig.
Best practice for pythonist.
Correct– .sort() works inplace. While that reduces memory overhead, that is bad practice for most functions because of Python's implicit pass-by-assignment mechanic. The function would have the side-effect of sorting the original list, which might or might not cause a very difficult to find bug later.
AFAIK .sort() is method for lists and it doesnt return anything.
This comment is hidden because it contains spoiler information about the solution
nice solution