Computer Science, asked by ishamoorkath9772, 11 months ago

When will the else part of try-except-else be executed?

Answers

Answered by irishmelinda2004
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