C-17-Q060mediumsingle_mcq
The default branch in a match block is written as:
The default branch in a match block is written as:
- a
case _ - b
case default - c
case else - d
case any
ব্যাখ্যা
In Python's structural pattern matching, the wildcard pattern case _: acts as the catch-all default branch, since the underscore matches any value without binding it. The other forms like case default or case else are not valid Python syntax.