Q. What is the difference between else and elif construct of if statement?


Answer:-

else:-
The else clause of an if statement is executed when the condition of the if statement results into false.

elif:-
The elif clause of an if statement is executed when there is multiple conditions in if statement.

1 Comments

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

  1. Check out the best way of life and death in the best way

    ReplyDelete

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post