Can one block of except statements handle multiple exception?
A. yes, like except TypeError, SyntaxError [,…]
B. yes, like except [TypeError, SyntaxError]
C. no
D. none of the mentioned
Answer:A
Can one block of except statements handle multiple exception?
A. yes, like except TypeError, SyntaxError [,…] B. yes, like except [TypeError, SyntaxError] C. no D. none of the mentioned
Explanation: Each type of exception can be specified directly. There is no need to put it in a list.