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
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?