
Technology • 45 • Created with AI following Aligned with Common Core State Standards
Unit: Python Programming Basics (Lesson 3 of 6)
Curriculum Reference: GCSE Computer Science – AQA, OCR, Edexcel (Key Stage 4: Programming)
Duration: 45 minutes
Class Size: 15 students
Age Group: Years 10-12
By the end of this lesson, students will be able to:
Objective: Activate prior knowledge and introduce variables.
Explain that variables are named storage locations for data in Python.
Show a simple example:
name = "Alex"
age = 16
height = 1.7
Ask students:
name from “Alex” to “Olivia”?Introduce the three fundamental data types in Python:
int) – Whole numbersfloat) – Decimal numbersstr) – TextProvide a coding challenge where students predict the printed output:
x = 5
y = 2.3
z = "Hello"
print(type(x))
print(type(y))
print(type(z))
Discuss results and relate them to real-world data (e.g., student age as an integer, height as a float, names as strings).
Students write a Python program that asks users for their name, age, and favourite number.
They store each input in a variable and display personalised output.
name = input("Enter your name: ")
age = int(input("Enter your age: "))
fav_number = float(input("Enter your favourite number: "))
print(f"Hello {name}, you are {age} years old, and your favourite number is {fav_number}!")
Pair students up to debug each other’s code and ensure correct data types.
Show a Python script with poorly named variables:
x = "Sophie"
y = 14
z = 1.66
Ask students to rewrite the code using meaningful variable names.
Discuss how clarity in naming makes code more readable and professional.
Reflection Questions:
Ask students to write a short Python script that stores their top three hobbies as variables and prints a sentence combining all three.
Example:
hobby1 = "Football"
hobby2 = "Reading"
hobby3 = "Painting"
print(f"My hobbies include {hobby1}, {hobby2}, and {hobby3}.")
bool (Boolean) data type and incorporate it into their homework.✅ Laptops with Python installed (or access to an online Python compiler)
✅ Whiteboard & markers
✅ Pre-prepared example scripts for demonstration
✅ Printed step-by-step guide for students needing support
This lesson embeds real-world problem-solving, critical thinking, and peer learning. Encouraging students to experiment with variables beyond the lesson (e.g., creating budget calculators or personal to-do lists) will deepen engagement and mastery.
Join thousands of teachers using Kuraplan AI to create personalized lesson plans that align with Aligned with Common Core State Standards in minutes, not hours.
Created with Kuraplan AI
🌟 Trusted by 1000+ Schools
Join educators across United States