Add decision-making to your code

Beginner
Developer
Student
Visual Studio Code

Learn how to control the flow of your Python programs using Booleans, comparison operators, conditional logic, and logical operators.

Learning objectives

After completing this module, you're able to:

  • Evaluate conditions using Boolean values and comparison operators.
  • Control code flow using if, elif, and else statements.
  • Build complex conditions using logical operators (and, or, not).