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.
How does this have anything to do with math?
This comment is hidden because it contains spoiler information about the solution
perfect example of implemention of math skills
I feel silly now
I realized that I included
for x in range(0,len(numbers)
within the 1-line return.But still why?
Great solution!
I attempted the same 1-lines return but within (CODE) Parenthesis.
It didn't take.
Can you please explain to me why it works without encapsulating in parenthesis?
I am curious.
Thankyou
how evaluation go once for this ?
Huh thank you for that I also made his mistake
Nice way
im a noob to python how is that a function ? Someone pls explain.
this is probably the fastest solution, possibly because it does not use the
**
(square) operator. I compared these top two solutions usingtimeit
doh! I hate when I leave the redundant bits
Actually, there is no unnecessary computation here. min(numbers) is simply repeated both in the if and else conditions. Only one of them gets executed, though.
Thanks very much guys. I'll use it with caution, but it's good to know.
@Steffan: when you mark your post as spoiler, the person to who you answer doesn't get any notification. That's why you see sometimes this kind of message.
Loading more items...