Link Search Menu Expand Document

Conditionals

This module focuses on conditionals. It covers the following topics:

  • Floor division and modulo: //, %
  • Boolean expressions
  • Relational operators: ==, !=, >, <, >=, <=
  • Logical operators: and, or, not
  • Conditional execution: if, else, elif
  • pass
  • Nested conditionals
  • Chaining comparisons: 0 < x < 10

📖 Learn the material

✍️ Proceed to the conditionals test (estimated time needed: 30 minutes)


⬅️ Return to Functions

➡️ Move on to Iteration