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.
Adding to a string is a slow and inefficient operation because strings are immutable in python. It's a readable solution, yes, but scale this up far enough and operation time is going to be high. It's far more efficient to create a list of strings and join them.
I like the first line
yeah, I always forget you can do it this way. it's smooth.
only a good idea if you're not sacrificing readability in the process. simple ones like this it can be nice.
cool use of swapcase.
I like this because of how legible it is.
most readable, least overwrought... the folks who don't like this are clutching pearls imo. good work.
probably the actual best practice because you can read it
This is literally the most grokkable solution though. We have the compute; why write 'efficient' spaghetti instead?
best practices for sure
today i learned
this is what I did! keep it simple, right?
love this one. perfect balance of readability and conciseness imo