A

Admin • 833K 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: 18
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

Multiple exceptions can be handled using a tuple in `except`.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.