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.
eh?
This comment is hidden because it contains spoiler information about the solution
Oh well. You're right. But it's Python.
It does the trick but there are some really concise solutions here with a fraction of the upvotes...
learnes a big lesson
I did not know this (very new to Python) but it makes sense. Thanks for pointing it out.
Man I feel dumb when I look at this code
I did it in something like 8 lines of code, you did in one.
Good Job 👍
Nice way to evaluate the arr is not empty or None.
Well, to be honest i couldn't have found the answer because i didnt know how to use the range function so thanks i guess, i think i learned something new now
Me too :PP
L comment I won't lie
It can also be None according to the kata description, which would then return None and fail.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
I was looking for this method haha! Thanks :)
Loading more items...