Sail E0 Webinar
Question
When will the else part of try-except-else be executed?
Options:
A .  always
B .  when an exception occurs
C .  when no exception occurs
D .  when an exception occurs in to except block
Answer: Option C


The else part is executed when no exception occurs.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers