C-17-Q125mediumsingle_mcq
Compared to a long if / elif / else chain that compares one variable, a match statement is mainly used to:
Compared to a long if / elif / else chain that compares one variable, a match statement is mainly used to:
- aImprove readability when selecting based on the value of a single variable
- bReplace
forloops - cOpen files
- dPerform arithmetic