explain if.... else statement with an example
Answers
Answered by
26
Answer:
if else means that if a certain condition is satisfied then the if statement will be executed otherwise the else statement will be.
for example
if(a > b)
print("a is greater ")
else
print("b is greater ")
this means that if a is greater than b - it will print - a is greater
or else it will print - b is greater
Explanation:
Similar questions