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.
So smart!
While learning I heared from my teachers that despite
reduce
can replace bothmap
andfilter
by itself, it is still best practice to separate these functions, while we are working on the code.However, your suggestion surely correct!
it is called args. args is a tuple
This comment is hidden because it contains spoiler information about the solution
i feel so dumb
yeah nice, but it's missing the case in which both a and b are negative
This should be voted as the most clever solution!
lol what
Now you've been 3 years with Python and 2 Kyu. Not bad.
I KNEW this would be the top answer. I was like "there's definitely a way to access all of the arguments in a function." But I just didn't know it, so I just did return var1 + var2 + var3 lol.
This is good to know. I often use list = [*string] when I can't figure out how to adjust a string the way I need to so I was aware of this syntax, but didn't know it could be used in this way.
That's smart
This comment is hidden because it contains spoiler information about the solution
anyway did u get a job yet ?
would be nice to apply lambdas here, or? ;-)
very clear:)
Loading more items...