Python - Multiple Inheritance and Method Resolution
What will be the output of the following code?
class A:
def greet(self):
print('Hello from A')
class B(A):
def greet(self):
print('Hello from B')
super().greet()
class C(A):
def greet(self):
print('Hello from C')
super().greet()
class D(B, C):
def greet(self):
print('Hello from D')
super().greet()
d = D()
d.greet()