human
I am working on the file "08 Classes and OOP.ipynb".
The first task is:
top
<a name="mro"></a>Method Resolution Order (mro)
Can you write Python code for it?
assistant
#Here is the Python code you requested.

class A:
    def __init__(self, a):
        self.a = a
        

class GreatB:
    
    def greetings(self):
        print('Greetings from Type: ', self.__class__)
        
class B(GreatB):
    def __init__(self, b):
        self.b = b
        
        
class C(A,B):
    def __init__(self, a, b):
        A.__init__(self, a)
        B.__init__(self, b)
        
print('MRO: ', C.mro())        
c = C('A', 'B')
print('c.a: ', c.a)
print('c.b: ', c.b)

c.greetings()
super(C, c).greetings()
super(B, c).greetings()