A

Admin • 833K Points
Coach

Q. What does the `finally` block do?

  • (A) Runs only if an exception occurs
  • (B) Runs only if no exception occurs
  • (C) Runs whether or not an exception occurs
  • (D) Skips all errors
  • Correct Answer - Option(C)
  • Views: 22
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

`finally` block always executes, regardless of an exception.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.