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.
Kata specification in this case cannot be changed or else will break existing solutions
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?
This comment is hidden because it contains spoiler information about the solution
Thanks!
+1 for very pretty and readable code. nice
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
The return statement ends the function and returns 'NO'. It never gets to the return 'YES' statement.
Sorry guys, I am a little new to javascript and was wondering, if the case is that this scripts returns no, won't it also return yes? What stops the return 'Yes' from running?