
Technology • 45 • Created with AI following Aligned with Common Core State Standards
Unit: Python Programming Basics
Lesson Number: 6 of 6
Key Stage: KS4/KS5 (Years 10-12)
Curriculum Link: A-Level Computer Science – Computational Thinking, Programming & Problem Solving (AQA, OCR, Edexcel)
Lesson Duration: 45 minutes
Class Size: 15 students
By the end of the lesson, students will be able to:
Display a short, buggy piece of Python code on the board:
user_name = input("Enter your name: ")
age = input("Enter your age: ")
future_age = age + 10
print("In 10 years, you will be " + future_age)
Ask students to work in pairs to identify and correct the error.
Discuss the importance of data types and conversions.
Introduce today's goal: building a functional Python program from scratch.
Problem Breakdown: Explain that students will create a simple "Tip Calculator" that asks the user for a bill amount, tip percentage, and calculates the total cost.
Step-by-Step Walkthrough: Live-code the first few steps on the board:
bill_amount = float(input("Enter the bill amount: £"))
tip_percentage = float(input("Enter the tip percentage: "))
total_tip = (tip_percentage / 100) * bill_amount
total_amount = bill_amount + total_tip
print(f"Your total bill, including tip, is: £{total_amount:.2f}")
Pause after each step and ask students to predict what will happen when the code is run.
Run the code to test output, highlighting how user input impacts calculations.
Task Instructions:
Support & Guidance:
✅ Assessment:
✅ Differentiation:
This lesson ensures students consolidate their Python skills in a practical setting, fostering problem-solving abilities and computational thinking essential for KS4 & KS5 curricula.
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