Python - Multiple Inheritance and Method Resolution
Identify the error in the following code snippet using multiple inheritance:
class X:
def __init__(self):
print('X init')
class Y:
def __init__(self):
print('Y init')
class Z(X, Y):
def __init__(self):
X.__init__(self)
Y.__init__(self)
z = Z()