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.
For anyone reading this now, its generally better to use fstrings
It is creating a formated string. Here is a good video on the process:
https://www.youtube.com/watch?v=nghuHvKLhJA
is it only slower because of short circuit evaluation if the first argument is wrong or in other cases as well?
no, it's actually slower than the top one
this is helpful thank you
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
I think just the beginners cannot read and understand a one-liner in similar size. :)
no problem! I couldn't see this earlier, because you marked it as a spoiler. (I got done with work and found a spare moment to solve the kata) Best of luck, let me know if you have any other questions.
this is probably because you have not entered any code after at least one of the function declarations:
Use spoiler flag next time, please.
The function name was originally
quarterOf
, which is not in line with the python conventions. So I "prepared" for the future and put there the snake case version of the function name too.This comment is hidden because it contains spoiler information about the solution
lol. This is like hard solution for easy question.