When will the else part of try-except-else be executed?
Answers
Answered by
1
Answer:
Heya....here’s ur answer
Explanation:
The else part is only executed on two conditions:
1. The code in the relevant ’try’ block has completed
2. The code in the relevant ’try’ block does not raise an exception
The situation can seem complex when there are nested try/ except block, as it partially depends on what the inner try/ except block handles and re-raises.
Hope it helps.....
Plz mark the brainliest
Similar questions
Science,
6 months ago
CBSE BOARD XII,
6 months ago
Biology,
6 months ago
Computer Science,
1 year ago
Chemistry,
1 year ago
Science,
1 year ago