Module 3 · Boolean values, conditional execution, loops, lists and list processing, logical and bitwise operations
Making decisions in Python
Teach your code to choose. Ask yes/no questions with comparison operators, and run different code depending on the answer.
Begin lesson 1 →- 1Questions and answersHow a program asks a yes/no question and gets True or False.→
- 2Comparison operators==, !=, >, <, >=, <= — and why == isn't =.→
- 3Making use of answersStore a True/False answer in a variable and reuse it.→
- 4Conditions and conditional executionif, else and elif — run code only when a condition holds.→
- 5Analyzing code samplesRead if/elif/else programs and predict what they do.→
- 6Pseudocode and a peek at loopsPlan in plain steps — and meet the idea of repetition.→
- 7QuizCheck your grip on comparisons and conditions.→