Decisions
Level 1 · estimatedAsk a true-or-false question about a value, run one block of lines or another, and test the values where a rule changes. Predict each result before you run the program.
Lessons
Read the whole unit on one page
- Ask a true-or-false questionLevel 1 · Foundations
- Choose a branchLevel 1 · Foundations
- Handle a boundary valueLevel 1 · Foundations
- Combine two conditionsLevel 1 · Foundations
- Trace a ticket ruleLevel 1 · Foundations
Sources
- Python 3.13 Library Reference, Built-in Types: Comparisons. Python Software Foundation. Python Software Foundation License Version 2. Read 1 Dec 2026. Cited in Ask a true-or-false question, Handle a boundary value.
- Python 3.13 Language Reference, 6.10 Comparisons. Python Software Foundation. Python Software Foundation License Version 2. Read 1 Dec 2026. Cited in Ask a true-or-false question, Combine two conditions.
- Python 3.13 Library Reference, Built-in Types: Boolean Type. Python Software Foundation. Python Software Foundation License Version 2. Read 1 Dec 2026. Cited in Ask a true-or-false question.
- Python 3.13 Tutorial, 3.1.1 Numbers. Python Software Foundation. Python Software Foundation License Version 2. Read 1 Dec 2026. Cited in Ask a true-or-false question.
- Python 3.13 Tutorial, 8.1 Syntax Errors. Python Software Foundation. Python Software Foundation License Version 2. Read 1 Dec 2026. Cited in Ask a true-or-false question, Choose a branch.
- Python 3.13 Library Reference, Built-in Functions: input. Python Software Foundation. Python Software Foundation License Version 2. Read 1 Dec 2026. Cited in Ask a true-or-false question, Combine two conditions.
- Python 3.13 Library Reference, Built-in Functions: int. Python Software Foundation. Python Software Foundation License Version 2. Read 1 Dec 2026. Cited in Ask a true-or-false question, Combine two conditions.
- Python 3.13 Tutorial, 4.1 if Statements. Python Software Foundation. Python Software Foundation License Version 2. Read 1 Dec 2026. Cited in Choose a branch, Handle a boundary value, Trace a ticket rule.
- Python 3.13 Language Reference, 8 Compound statements and 8.1 The if statement. Python Software Foundation. Python Software Foundation License Version 2. Read 1 Dec 2026. Cited in Choose a branch, Handle a boundary value, Combine two conditions, Trace a ticket rule.
- Python 3.13 Language Reference, 2.1.8 Indentation. Python Software Foundation. Python Software Foundation License Version 2. Read 1 Dec 2026. Cited in Choose a branch, Trace a ticket rule.
- Python 3.13 Tutorial, 4.10 Intermezzo: Coding Style. Python Software Foundation. Python Software Foundation License Version 2. Read 1 Dec 2026. Cited in Choose a branch, Trace a ticket rule.
- Python 3.13 Library Reference, Built-in Exceptions: IndentationError. Python Software Foundation. Python Software Foundation License Version 2. Read 1 Dec 2026. Cited in Choose a branch.
- Python 3.13 Library Reference, Built-in Types: Boolean Operations. Python Software Foundation. Python Software Foundation License Version 2. Read 1 Dec 2026. Cited in Combine two conditions.
- Python 3.13 Language Reference, 6.11 Boolean operations. Python Software Foundation. Python Software Foundation License Version 2. Read 1 Dec 2026. Cited in Combine two conditions.
- Python 3.13 Language Reference, 6.17 Operator precedence. Python Software Foundation. Python Software Foundation License Version 2. Read 1 Dec 2026. Cited in Combine two conditions.
- Python 3.13 Library Reference, Built-in Types: Truth Value Testing. Python Software Foundation. Python Software Foundation License Version 2. Read 1 Dec 2026. Cited in Combine two conditions.