Python - Multiple Inheritance and Method Resolution
Find the error in this code related to the diamond problem:
class A:
def greet(self):
print('Hello from A')
class B(A):
def greet(self):
print('Hello from B')
class C(A):
def greet(self):
print('Hello from C')
class D(B, C):
def greet(self):
C.greet(self)
D().greet()