Advertisements
Advertisements
प्रश्न
Can one block of except statements handle multiple exceptions?
पर्याय
yes, like except TypeError, SyntaxError [,...]
yes, like except [TypeError, SyntaxError]
no
None of the mentioned
MCQ
उत्तर
yes, like except TypeError, SyntaxError [,...]
Explanation:
It is possible to directly specify each kind of exception. It is not necessary to include it in a list.
shaalaa.com
Handling Exceptions
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?