Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Python Institute Exam PCAP-31-03 Topic 7 Question 42 Discussion

Actual exam question for Python Institute's PCAP-31-03 exam
Question #: 42
Topic #: 7
[All PCAP-31-03 Questions]

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

Show Suggested Answer Hide Answer
Suggested Answer: C, D

Contribute your Thoughts:

Krystina
2 hours ago
Option B looks good to me, it's the most straightforward way to handle multiple exceptions in one except branch.
upvoted 0 times
...
Fairy
1 days ago
I disagree, I believe the answer is C) except Ex1, Ex2:
upvoted 0 times
...
Brice
4 days ago
I think the correct answer is B) except (Ex1, Ex2):
upvoted 0 times
...

Save Cancel