<AptiCode/>

Question 450: In Python, what is the purpose of theelseblock in exception handling?

tcs
wipro
infosys
general
aptitude
exception-handling

Theelseblock is executed only if no exceptions are raised in the associated "try" block. It is used to specify code that should run when there are no exceptions.