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.
thats so simple!!! why didn't i think of this ??
the not is just unnecessary ig lol
Thanks for sharing this amazing solution. Applications on lambda functions are still foggy for me, and I struggle to see when it is possible to apply them.
thank you for explaining how the lambda function is actually working. I was busting my brain here to understand
Not really, this solution is at least 5 years old, so, in Python 2.7
/
was integer division if both operands were integers. But it's true there is no fixed test for that and you could be lucky enough to pass the random tests.sooo we just never had any checks to make sure integer division was actually happening?
one(divided_by(two)) is yielding 1/2 here and not 0, right?
i had to step through this on thonny to understand what was happening but I love it! so smart
It only fails because they used division ('/') instead of floor division ('//') the one you need is explained in the instructions. The failures occur because it is expecting a result rounded down to the nearest whole number and is instead giving a decimal answer in certain tests.
It would be so much easier to pass e.g.
abs
as a default function instead ofif
andelse
Thank you
Clean and clever
It return not function and the value of variable that keep the function.
Sorry, my english isn't good. I hope you will understand my explanation.
it's realy clever solution
Thanks for showing the actual potential of lambda!
This comment is hidden because it contains spoiler information about the solution
Loading more items...