Question 1

Last Updated :
Discuss
Comments

What is the purpose of the else clause in a Python if-else statement?

It is used to handle exceptions.

It is executed when the if condition is true.

It is executed when none of the preceding if or elif conditions are true.

It is used to terminate the program.

Share your thoughts in the comments