In a Python match statement, which pattern acts as a wildcard that matches any value?
Correct answer D. case _:
Explanation
The underscore pattern _ always succeeds and binds no name, so case _: is used as the final catch-all branch. Python has no default keyword; writing case default: would capture the subject into a variable named default, and case else: is a syntax error.
Answer checked How we write and check questions
Discussion