M

Mr. Dubey • 100.28K Points
Coach

Q. How do you handle multiple exceptions in one `except` block?

  • (A) except (A, B):
  • (B) except A || B:
  • (C) except A, B:
  • (D) except [A, B]:
  • Correct Answer - Option(A)
  • Views: 17
  • Filed under category Python

Explanation by: Mr. Dubey
Multiple exceptions can be handled using a tuple in `except`.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics