Home ยป Programming Language (coding) ยป Python MCQs ยป Which of the following blocks will be executed whether an exception is thrown or not?

Which of the following blocks will be executed whether an exception is thrown or not?

Which of the following blocks will be executed whether an exception is thrown or not?

A. except
B. finally
C. else
D. assert

Correct Answer: Option B. finally 

Take Part in Discussion:

Your email address will not be published.

Solve : *
20 + 10 =