Python · OOP: Properties, Methods & Data Classes
What does this print? ``` class A: def __init__(self): self.x = 1 a = A() print(getattr(a, "x")) print(getattr(a, "y", 99)) print(getattr(a, "y")) ```
Answer locked. Get the free KnowCard app to reveal it — plus spaced-repetition review so it actually sticks.
