Compound statements contain other statements. This means a test or execution while
false executes the statements within itself. The trick is to write statements so that they are efficient and effective. Examples of this include
if then statements, loops, and exception handling.
if statement tests for a specific condition, and if that condition is met (or not met), then the statement is executed. The
if statement can include a simple check to see whether a variable is
false, and then print the details, as shown in the following example:
x = 1 if x == 1: print("The variable x has a value of 1")
if statement can even be used to check for multiple conditions at the same time. Keep in mind ...