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.
#11b35/3qb:0z:vV
it is the tradeoff for using a scrited language. it is almost impossible to do
anything without headers in c.
thank you
Very helpful comment, thank you.
Why do you do the Kata when you don't like regex????
nice how such riddles can actually teach people things better than any university
Tuple.
(I've no idea why you've problem with tuple being immutable)
I agree! It should be 7. kyu, your opinion matter, thanks for feedback.
A or B evaluates to A if A is "true", otherwise to B (even if B is "false").
1 or 24 => 1
0 or 24 => 0
0 or False => False
02
is a format specifier (https://docs.python.org/3.8/library/string.html#formatspec)0
: leading zeroes2
: minimum widthHonestly I would not expect anyone to not know how this game works. But apparently I'd be wrong :)
It doesn't say it SHOULD be a 7 or 6, it says it CAN be a 7 or 6. That depends on you.
I thought the same thing but once I understood the trick I also understood why that was added to the top. It CAN be more difficult than an 8 if you go about it the hard way.
I intentionally included them, so that new Python users can see the wonderful world of type hinting, which was added as long ago as 3.5, but since then getting more and more popular, mostly due to some great modules and libraries (like Pydantic) taking advantage of this feature.
Note: works only in Pyhthon 3.8 and above
It's a type hint.
If description doesn't say otherwise then using already existing functions is pretty good approach. In any case everyone is free in ways of solving.