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.
😳
the if statement works only if condition is true, so if b was a true it will run and return a True and else otherwise,
and if you're talking about the way he write the code this the shorthand if statement in return statement
This code returns string either way I guess :D
could someone explain the concept behind this
hyper brainy
mine respect
my brain isn't braining
This comment is hidden because it contains spoiler information about the solution
when you think just a bit too hard.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Same issue; tried both of these approaches (round & float).
Yeah, that's the point. We want to get the right answer as we make in general mathematic, regardless of the Python specification.
What's the reasoning behind this test? It clearly differs from the definition of "rounding" othe standard library, and there's no clear definition on the kata description that entails it.
I wonder if this test should be commented by default and labeled as optional?
Compliance to this particular test is not required to pass the kata.
Having the same code fail the supplied test cases but succeed the kata's test cases can be confusing/frustrating for beginners.
don't know how about you, but for me even round(n,2) didn't work...
despite the solution using round(n,2) passed obviously
Loading more items...