Q. How do you handle exceptions in Python?

  • (A) try-except block
  • (B) do-catch block
  • (C) catch block
  • (D) handle block
πŸ’¬ Discuss
βœ… Correct Answer: (A) try-except block
Explanation: Python uses `try` and `except` to handle exceptions.
Explanation by: Mr. Dubey
Python uses `try` and `except` to handle exceptions.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
91
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
95%
Success Rate