Lesson 14: isinstance() and when to inherit at all
How do you check what an object was created from? isinstance() answers — and understands inheritance too: a dog is both a Dog and an Animal. From that same check grows the key rule for when to inherit at all: the "is-a" test.