A

Admin • 832.27K Points
Coach

Q. Which of the following is the correct syntax for handling exceptions in Python?

  • (A) try: except: finally:
  • (B) try: catch: finally:
  • (C) catch: try: finally:
  • (D) try: error: finally:
  • Correct Answer - Option(A)
  • Views: 16
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

The correct syntax for exception handling in Python is 'try: except: finally:'.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.