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.
Instead of creating two of the same list for the
if
andfor
, you could've assign a variable.Mutation tho
When you don't care to just make an
average
variableLOL
Someone had to do it...
🤣
Love it
Can anyone explain the
*
?If
len(arr)
is 0 (empty list), then the if is false and returns an empty list. Without that part of the code it would return[0, 0]
iflen(arr) is 0
This comment is hidden because it contains spoiler information about the solution
My solution has five lines and still fast :P
Check my code for a more optimized version of your def get_sum
Never mind
Exclamation mark = - . - . - -