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
would have been more elegant to just use reverse string slicing.
I don't.
Tuple.
(I've no idea why you've problem with tuple being immutable)
What sort of data format is the kata expecting the answers in? I see parenthesis, but tuples are not mutable... would it accept the correct answers in a list format?
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 widthA couple things that suck about this approach
Although syntactically and semantically correct, this could use refactorization
So does "h%24 or 24 " work because in the instance that 24%24 will yield 0, which will evaluate to False (truthy value of 0 is false) in a boolean "or" expression, so then the expression will evaluate to the 24 (because 24 would be True so 24 is selected), correct?
Mr or Ms Mauro-1, can you please explain how the second part of your return statement works? I still cannot figure out how the M%60:02' portion works, specifically the 02 portion
I have the same problem. I like python, but sometimes I think my thought process lends itself to a more C or java type language.
My solution is stupid because:
Horrible.
Loading more items...