Python Decision Making

Decision making structures require that the programmer specify one or more conditions to be evaluated or tested by the program, along with a statement or statements to be executed if the condition is determined to be true, and optionally, other statements to be executed if the condition is determined to be false.

Following is the general form of a typical decision making structure found in most of the programming languages:

Python programming language assumes any non-zero and non-null values as true, and if it is either zero or null, then it is assumed as false value.

Python programming language provides following types of decision making statements. Click the following links to check their detail.