If Statements

Learn about conditional statements in Python.

We'll cover the following

Definition

If statements, or conditional statements, are used in the decision-making process, where a condition is evaluated to see whether it is true or false. Then, different actions are executed depending on the result.

Get hands-on with 1400+ tech skills courses.