When you access an attribute on an object, Python searches a list of classes in a fixed order and uses the first match. That list is the method resolution order (MRO). For single inheritance it is simple: the class, its parent, the grandparent, up to object. With multiple inheritance, Python computes it with an algorithm called C3 linearization, and the exam expects you to predict the result for small hierarchies.
Keep reading for free
Create a free StudyToCert account to read the rest of this lesson: 6 more sections, 4 key terms, a real-world example, an exam tip and self-check questions. Every lesson, lab and practice test is free with an account.