Which of the following is a soft keyword in Python, reserved only in certain contexts?
Correct answer A. match
Explanation
Soft keywords such as match, case and _ are treated as keywords only in specific grammar contexts, like the start of a match statement, so existing code can still use match as a variable name. yield, async and with are hard keywords that can never be used as identifiers.
Answer checked How we write and check questions
Discussion