Q. Which of the following keywords is used for exception handling in Python?

  • (A) try
  • (B) catch
  • (C) handle
  • (D) except
πŸ’¬ Discuss
βœ… Correct Answer: (A) try
Explanation: The `try` keyword is used to start a block that will catch exceptions. The `except` keyword handles them.
Explanation by: Mr. Dubey
The `try` keyword is used to start a block that will catch exceptions. The `except` keyword handles them.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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