Posts

Showing posts with the label if .... else

Python3 if..... else

Image
Python if .... else Statement  IF... ELSE STATEMENT :                  The if... elif.. else statements is used in Python for decision making.   if statement syntax:                    if test expression:                                    statement(s) Flow chart :      *  The program evaluates the test expression and execute the statement(s) only if the test expression is true. *  If the test expression is false, the statements is not executed. Eg:          num=25          if num=24:             print("The number is divisible by 2,3,6.")          print(" This will print always.") output:    This will print always. IF.... ELSE STATEMENT :    ...