
Other • Year 8 • 60 • 25 students • Created with AI following Aligned with National Curriculum for England
Free PDF · we'll email you a copy
This is lesson 1 of 1 in the unit "Python Decision Making". Lesson Title: Introduction to Decision Making in Python Lesson Description: In this lesson, students will explore the concept of decision making in programming using Python. They will learn about the purpose and use of selection statements, focusing on 'if', 'if-else', and 'nested if' structures. The lesson will include hands-on activities where students will write simple programs that utilize comparison, arithmetic, and Boolean operators to make decisions based on user input. By the end of the lesson, students will understand how to implement basic decision-making logic in their Python code.
Duration: 60 minutes
Class size: 25 students
Unit: Python Decision Making (Lesson 1 of 1)
Year group: Year 8 (age 12-13)
Subject: Computing / Computer Science – Other
National Curriculum Link:
By the end of this lesson, pupils will be able to:
if, if-else, and nested if statements in Python.National Curriculum for Computing (England, Key Stage 3):
"Pupils should be taught to use selection in programs [for example, using IF, ELSE statements...] and iteration."
Computing Programmes of Study, Years 7 to 9, Strand 2: Algorithms and Programming
Computing Content Descriptor KS3:
"Use two or more programming languages, at least one of which is textual, to solve a variety of computational problems; use sequences, selection, and iteration in programs; work with variables and various forms of input and output."
National Curriculum link: Developing logical reasoning and computational thinking (KS3 PoS)
if, if-else, nested ifDemonstrate syntax using live coding:
if statement example:
if 10 > 5:
print("10 is greater than 5")
Explain using comparison operators (==, !=, <, >, <=, >=) and Boolean operators (and, or, not):
Explain if-else structure:
Introduce nested if statements:
ifs (e.g., checking if a number is positive and even).Highlight use of user input:
input() function, casting input to int with int().National Curriculum link: Use of operators, inputs and selection [KS3]
Task 1: Simple Decision Program (Individual, 10 minutes)
Students write a Python program that asks the user for their favourite number and tells them if it's greater than 10 or not.
input() with int conversionif-else with comparison operatorTask 2: Nested Decision (Pairs, 10 minutes)
Students work in pairs to create a program which:
if statements or multiple if-elif-else (teacher to confirm use of elif as an extension).Teacher role: Circulate to support, ask probing questions about logic, syntax, and operator use.
Class quiz using mini-whiteboards or sticky notes:
if statements with Boolean operators or nested conditions.Peer explanation:
if program to the class.Formative Assessment:
For lower ability pupils:
if statements with clear boolean expressions.For higher ability pupils:
elif statements (beyond if-else) for more streamlined code.Ongoing formative assessment based on:
Use of peer feedback during paired programming.
Informal teacher notes on students’ ability to correctly use selection statements and operators.
if.This plan ensures active participation, clear links to the KS3 national curriculum objectives for Computing, and provides a strong foundation for understanding programmatic decision making in Python.
Join thousands of teachers using Kuraplan AI to create personalized lesson plans that align with Aligned with National Curriculum for England in minutes, not hours.
Created with Kuraplan AI
Generated using gpt-4.1-mini-2025-04-14
🌟 Trusted by 1000+ Schools
Join educators across United Kingdom