Branching
Branching allows you to change the flow of control in programs. Mostly branching statements provide a decision mechanism that allows the program to decide to run one block of code to another. If/else statements use the result of evaluating a simple or complex condition to determine whether an indented block of code gets executed. The general syntax is the following.
If <condition>:
<block of statements>
else:
<another block of statements>