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.
Double is used for slicing not indexing
This comment is hidden because it contains spoiler information about the solution
Nice, more compact than mine with a similar idea.
This comment is hidden because it contains spoiler information about the solution
I had the same idea but yours is cleaner. Well done.
Very clean. I should have thought of this.
The get() method is for dictionaries. In this case, o is the key. When get(o) is called, it will return the value that corresponds with the key, which is then returned by the basic_op() function.
This is tricky! I like being forced to practice concise coding, despite the frustrations!
Wow, I'm stupid. This makes more sense.
I've never seen the double colon used for indexing like that. Thanks for the new info.
Quality trolling
Similar logic, but much cleaner than mine. Nice!
It's not so hard if you understand the basics of objects and classes (i.e., object oriented programming in general).