Python · Structural Pattern Matching
Given a complex number z = 4+0j, what does this print? ``` match z: case complex(real=r, imag=0): print(f"real {r}") case complex(): print("complex") ```
Answer locked. Get the free KnowCard app to reveal it — plus spaced-repetition review so it actually sticks.
