Computer Science, asked by tanmay6578, 2 months ago

Difference between‘if' and ‘if' ...else statement in python​

Answers

Answered by HorridAshu
1

\huge\bold{\mathtt{\red{A{\pink{N{\green{S{\blue{W{\purple{E{\orange{R}}}}}}}}}}}}}

The elif is short for else if. It allows us to check for multiple expressions. If the condition for if is False , it checks the condition of the next elif block and so on. If all the conditions are False , the body of else is executed.

Similar questions