Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardPythonMRO and C3 linearizationSingle-choice MCQ

What does `super().__init__()` inside B actually resolve to when called on a D() instance, and what determines it?

class A: def __init__(self): print("A") class B(A): def __init__(self): print("B"); super().__init__() class C(A): def __init__(self): print("C"); super().__init__() class D(B, C): def __init__(self): print("D"); super().__init__() D()