If you need to serve two different exceptions called Ex1 and Ex2 in one except branch, you can write:

Posted by: Pdfprep Category: PCAP-31-02 Tags: , ,

If you need to serve two different exceptions called Ex1 and Ex2 in one except branch, you can write:
A . except Ex1 Ex2:
B . except (ex1, Ex2):
C . except Ex1, Ex2:
D . except Ex1+Ex2:

Answer: B

Explanation:

Reference: https://www.programiz.com/python-programming/exception-handling

Leave a Reply

Your email address will not be published.