Definition of if-else Condition :
- In Python, the if-else statement allows you to run different blocks of code based on whether a condition is true or false
if : Runs code if the condition is true.
else : Runs code if the condition is false.
if-else condition syntax :
Program :
Output :
0 Comments