Python - Multiple Inheritance and Method Resolution
Consider the following code snippet. What is the error and how to fix it?
class X:
def method(self):
return 'X'
class Y:
def method(self):
return 'Y'
class Z(X, Y):
def method(self):
return super().method()
print(Z().method())