
Technology • 45 • Created with AI following Aligned with Common Core State Standards
Unit: Python Programming Basics
Lesson Number: 4 of 6
Duration: 45 minutes
Class Size: 15 students
Age Group: Years 10-12
UK Curriculum Reference:
By the end of this lesson, students will be able to:
input() function to take user input in Python.print() function with string concatenation and f-strings.input() and print()Begin with a thought experiment:
"Imagine you're developing a chatbot; what kind of input would it need to function correctly?"
input())input() and its syntax:
name = input("What is your name? ")
print("Hello, " + name + "!")
input() accepts string values and requires conversion for numerical operations.print()print("Your name is " + name + ".")
print(f"Hello, {name}! Welcome to our program.")
.format() method
print("Hello, {}! How are you today?".format(name))
Students follow along and experiment with input/output:
Task 1: Simple Introduction Program
name = input("Enter your name: ")
age = int(input("Enter your age: "))
print(f"Nice to meet you, {name}. In 5 years, you will be {age + 5} years old.")
Task 2: Mini Chatbot Challenge
Students write a basic chatbot that:
colour = input("What's your favourite colour? ")
print(f"Wow, {colour} is a beautiful colour!")
Task: Build an Interactive Calculator
num1 = float(input("Enter first number: "))
num2 = float(input("Enter second number: "))
total = num1 + num2
print(f"The total is {total}.")
+, -, *, /).Real-World Python Challenge: Write a program that asks the user for their birth year and calculates their age in 2050.
This highly interactive lesson ensures that students engage, apply, and extend their Python skills while developing essential programming knowledge.
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