References: Making Decisions with If/Else¶
-
Conditional (computer programming) — Wikipedia https://en.wikipedia.org/wiki/Conditional_(computer_programming) Explains the concept of conditional execution in programming, covering if/else branching logic, truth values, and how decision-making structures appear across many programming languages including Python.
-
Boolean algebra — Wikipedia https://en.wikipedia.org/wiki/Boolean_algebra Covers the mathematical foundation of True/False logic that underlies all Python boolean expressions, comparison operators, and the conditions used inside if and elif statements.
-
Relational operator — Wikipedia https://en.wikipedia.org/wiki/Relational_operator Describes the comparison operators (
==,!=,<,>,<=,>=) used to form boolean expressions in Python, explaining how each operator evaluates two values and returns True or False. -
Python Crash Course by Eric Matthes (No Starch Press, 3rd ed.) Chapter 5 covers if statements, comparison operators, and elif/else chains with clear, beginner-friendly examples that directly match the decision-making concepts introduced in this chapter.
-
Python for Kids by Jason R. Briggs (No Starch Press) Written specifically for young learners, this book introduces if/else statements with playful examples and visual explanations ideally suited for students ages 10–13 making the jump from Scratch to Python.
-
Python
ifStatement — Official Python Tutorial https://docs.python.org/3/tutorial/controlflow.html#if-statements The authoritative Python documentation on if, elif, and else syntax, with concise examples showing how Python evaluates conditions and chooses which block of code to execute. -
Python Conditions and If Statements — W3Schools https://www.w3schools.com/python/python_conditions.asp Provides interactive, try-it-yourself examples of if, elif, and else statements along with all Python comparison and logical operators, making it an excellent quick reference for new learners.
-
Python if...else Statement — Programiz https://www.programiz.com/python-programming/if-elif-else Step-by-step tutorial covering if, if…else, and if…elif…else structures with flowchart diagrams that visually show how Python branches through different conditions, ideal for visual learners.
-
Python if, else, elif Conditions — Real Python https://realpython.com/python-conditional-statements/ In-depth guide to Python conditional statements covering boolean context, comparison operators, logical operators, and nested if statements, with practical examples to build solid understanding.
-
Python Conditionals — Khan Academy https://www.khanacademy.org/computing/intro-to-python-fundamentals Beginner-friendly video lessons and coding exercises introducing conditional logic in Python, designed for students with no prior programming experience beyond block-based tools like Scratch.