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.
im amazed by these one line solutions!
nicely done.
No need for parentheses as 'and' has priority over 'or'. Readability for humans suffer though :)
Copy that. Thank you!
not usually best practice, in real life strive for readibility while being able to make your code shorter
I keep forgetting I don't need to make new variables for everything and it can all usually fit inside a return statement. Unsure at my level if that is the best practice, but the fewer lines of code is what I'm currently striving for as I learn.
You can remove "else" at the end
The same
same hahahaha
How's that going to return [0] if arr is blank though?
The same!, but I use reverse=True, select -1
Thanks, I didn't know.
Hi, you need to use the spoiler flag when discussing code / methods / solutions. I have added the tag.
nice
guys ours looks the best 😎
why is this best pracice and not without
== 0
and swapeven
andodd
?Loading more items...