Multiple inheritance is a feature that allows you to inherit attributes and methods from more than one class. The most common use case for multiple inheritance is for mixins. Mixins are classes that have methods/attributes that are meant to be used by other functions. For example, a Logger class would have a log() method that writes to a logfile, and when added to your classes as a mixin, would give them that same capability.
The following is the syntax for multiple inheritance:
class Subclass(Superclass1, Superclass2): pass
The subclass inherits all of the features of both superclasses.
In the real world, lions and tigers can naturally mate to create a hybrid known as a liger or a tigon. Ligers are much larger than either lions or tigers, they are social like lions, have stripes, and, just like tigers, they like swimming. We're going to create a Liger class that inherits from both the Lion and Tiger class we're going to...