#divIf.py #demo of if statement. Divide two numbers, but only if the second is not zero. num1 = eval(input("Enter a number: " )) num2 = eval(input("Enter another number: " )) if num2 != 0: quotient = num1 / num2 print("Quotient =", quotient) else: print("No division by zero") print("Thank you") """ if statement makes the program branch, either the true branch or the false (else) branch is executed, not both and not neither, the other branch is skipped. Question is asked, decision is made, one branch is selected. Based on language/logic/real life: IF it's raining then I'll stay in, otherwise I'll go out. Syntax: if booleanExpression: statement(s) #of true branch else: statement(s) #of false branch else part is optional. Can not have else without matching if. booleanExpression is an expression that evaluates to true or false. Exs: num<=0 num==0 num!=0 num>10 num1==num2 num1>=num2 """