parent class and lastly from the grandparent class now the question arises in what order the classes will be searched breath-first or depth-first by defaultpython goes with the depth-first that' is why in the below diagram the python searches the dothis(method first in class so the method resolution order in the below example will be mrod-> -> -> look at the below multiple inheritance diagram