Python · Structural Pattern Matching
What does this print? ``` class Point: __match_args__ = ("x", "y") def __init__(self, x, y): self.x, self.y = x, y match Point(0, 7): case Point(0, 0): print("origin") case Point(0, y): print(f"y-axis {y}") ```
Answer locked. Get the free KnowCard app to reveal it — plus spaced-repetition review so it actually sticks.
