πŸ“Š Python
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]:
πŸ’¬ Discuss
βœ… Correct Answer: (A) except (A, B):

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

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

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
50
Total Visits
πŸ“½οΈ
8 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
92%
Success Rate