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.
Check out the best way of life and death in the best way
ReplyDeletePost a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )