Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardPython__init_subclass__Single-choice MCQ

Python: what is the output?

class A: def __init_subclass__(cls, **kwargs): print("A", end="") def greet(self): print("B", end="") class B(A): pass B().greet()