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.
Wish I thought of that!
Just to be clear, string interpolation is not a direct replacement for
format
. Interpolated strings are still hard-coded into the source code and cannot be changed at runtime, while withformat
, string templates can be not just literals, but also variables with values fetched from some other place (for example translation resources etc.) and can be reloaded when program is running.I didn't really follow either and both those links seem to discuss using the "string{}".format method, which I think is already replaced by the f"string{var}" method.
I mean, this is lovely but I don't get how it works either. does it specifically only work on a tuple?