0% found this document useful (0 votes)
2 views4 pages

Python Lesson Plan

This lesson plan introduces Python programming to students in grades 7-9 over five 45-minute periods. It covers essential topics such as the basics of Python, its features, variables and data types, input/output functions, and writing simple programs. Each section includes teacher and student activities, support for weaker students, homework assignments, and evaluation methods.

Uploaded by

harshagrover2020
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views4 pages

Python Lesson Plan

This lesson plan introduces Python programming to students in grades 7-9 over five 45-minute periods. It covers essential topics such as the basics of Python, its features, variables and data types, input/output functions, and writing simple programs. Each section includes teacher and student activities, support for weaker students, homework assignments, and evaluation methods.

Uploaded by

harshagrover2020
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

LESSON PLAN

Topic: Introduction to Python Programming


Subject: Computer Science / ICT Grade: Grade 7 – 9 Duration: 5 Periods × 45 minutes

Topic: Introduction to Python Sub-topics: What is Python • History • Features • Variables • Data Types • Basic I/O • Simple Programs

Teacher's Activity (Brief · Activity · Writing Guidance for Weak


Sub-Topic Students' Activity Homework Evaluation
Work) Students

1. What is 📘 Topic Brief: Students Do: 🤝 Support: 📚 Homework: 📝 Evaluation:


Python? Python is a high-level, general-purpose programming • Listen to teacher explanation • Provide a printed 'What is • Research: Find 3 apps or • Oral Q&A: 'What language did we
language created by Guido van Rossum and released in and take notes. Python?' fact sheet. websites built with Python. learn about today?'
1991. • Open Python IDLE on their • Sit next to weak student and • Write a paragraph: 'Why I • Show of hands: 'Who successfully
It uses simple English-like syntax, making it beginner- computer. guide them step-by-step to want to learn Python.' ran the Hello World program?'
friendly. • Type and run their first print() open IDLE. • Quick write: Define Python in one
Python is used in web development, data science, AI, statement. • Allow them to copy the print sentence.
automation, and school projects. statement from the board.
• Discuss with partner: 'Why do
Python files are saved with a .py extension.
we need programming • Use large font on board for
languages?' easy reading.
🎓 Teacher Activity: • Share one real-world Python
• Write 'Python' on board; ask: 'What do you know use they find interesting.
about snakes vs programming?'
• Explain what a programming language is using a
simple analogy (giving instructions to a robot).
• Show Python's official website ([Link]) and
IDLE editor on projector.
• Open IDLE and type: print('Hello, World!') — run
and show output.
• Discuss real-world apps built with Python (YouTube,
Instagram, NASA tools).

✏️Writing Work:
• Define: What is Python?
• Who created Python and in what year?
• List 5 uses of Python in the real world.
• Write the first Python program: print('Hello, World!')

2. Features & 📘 Topic Brief: Students Do: 🤝 Support: 📚 Homework: 📝 Evaluation:


Advantages of Python has several key features that make it popular: • Copy and label the features • Give a pre-drawn mind-map • Write 6 features of Python • Matching worksheet: Feature ↔
Python • Simple Syntax – reads almost like English. mind-map from the board. with blanks to fill in (not draw with one example each. Description.
• Interpreted – code runs line by line; no need to • Type the [Link] example in from scratch). • Try: change the turtle square • Peer marking: swap books and
compile. IDLE and record the output. • Reduce to 3 core features: to draw a triangle. check features list.
• Free & Open Source – anyone can download and use • Try the turtle square program Simple, Free, Portable. • Quick quiz (3 questions) on
it. independently. • Teacher types turtle code features.
Teacher's Activity (Brief · Activity · Writing Guidance for Weak
Sub-Topic Students' Activity Homework Evaluation
Work) Students

• Portable – runs on Windows, Mac, Linux. • Pair discussion: 'Which feature slowly while student follows
• Large Library – thousands of built-in modules (e.g. surprised you most?' each line.
math, random, turtle). • Provide printed turtle code
• Versatile – used for web, AI, games, science, and strip to refer to.
more.

🎓 Teacher Activity:
• Write each feature as a heading on the board with a
simple example.
• Show: import math → print([Link](25)) to
illustrate libraries.
• Compare Python syntax with C++ to show
simplicity.
• Show a turtle graphics demo: import turtle → draw a
square.
• Ask students: 'Which feature do you think is most
useful?'

✏️Writing Work:
• List and define all 6 features of Python.
• Write the math library example in your book and
show output.
• Draw a mind-map of Python features.
• Write: 'Why is Python better for beginners than C+
+?' (2 sentences).

3. Python 📘 Topic Brief: Students Do: 🤝 Support: 📚 Homework: 📝 Evaluation:


Variables & Data A variable is a named container that stores a value in • Create their own 4 variables in • Provide a fill-in-the-blank • Write a Python program with • Identify data type from given
Types memory. IDLE (name, age, height, variable chart (name, value, one variable of each data type. values (worksheet).
Rules for naming variables: start with a letter or is_student). data type columns). • Use type() to print each • Board exercise: 'Is this valid or
underscore, no spaces, case-sensitive. • Use type() to check and record • Use coloured chalk: each variable's type. Record output. invalid variable name?' (5
Python Data Types: each variable's data type. data type in a different colour examples).
int – whole numbers e.g. age = 14 • Predict output before running — on board. • IDLE check: teacher views student
float – decimal numbers e.g. price = 9.99 then run and compare. • Step-by-step: teacher types screen — correct variable created?
str – text/string e.g. name = 'Alice' • Challenge: create a variable that variable → student copies →
bool – True or False e.g. is_student = True changes type and explain what runs together.
Python automatically detects the data type (dynamic happens. • Limit to int and str only if
typing). overwhelmed.

🎓 Teacher Activity:
• Write: name = 'Alice' age = 14 height = 1.65 on
board.
• Explain each data type with a real-life analogy (int =
whole apples, float = half apple).
Teacher's Activity (Brief · Activity · Writing Guidance for Weak
Sub-Topic Students' Activity Homework Evaluation
Work) Students

• Demonstrate type() function: print(type(age)) →


<class 'int'>.
• Show dynamic typing: x = 5 then x = 'hello' —
Python accepts both.
• Live coding: create 4 variables (one of each type)
and print them.

✏️Writing Work:
• Define: variable, int, float, str, bool.
• Write 2 examples of each data type.
• Write and explain the 3 naming rules for variables.
• Code in book: create your own 4 variables and write
expected output.

4. Input & Output 📘 Topic Brief: Students Do: 🤝 Support: 📚 Homework: 📝 Evaluation:
(Basic I/O) Output in Python: the print() function displays text or • Type and run the Personal Info • Provide a code template with • Write a program that asks 3 • Live run: teacher calls a student to
values on screen. program in IDLE. blanks: name = input('___') → questions (name, age, city) type their name — class watches
print('Hello') → Hello • Modify it: add one more input student fills blanks. and prints a summary. output.
print(5 + 3) → 8 (favourite colour) and include in • Demonstrate error message • Add two numbers entered by • Error spotting: show broken code
Input in Python: the input() function asks the user to type output. on projector and explain it user and display the result. on board — who can find the
something. • Intentionally cause a TypeError calmly. mistake?
name = input('Enter your name: ') and write what error message • Teacher sits beside student • Check written program in books for
print('Hello, ' + name) appeared. and runs program together line correct syntax.
Note: input() always returns a string. Use int() or float() • Fix the error using int() by line.
to convert. conversion. • Allow extra attempts without
age = int(input('Enter your age: ')) time pressure.

🎓 Teacher Activity:
• Show print() with strings, numbers, and expressions
side by side.
• Demonstrate input() — type your name when
prompted, show how it prints.
• Explain: input() returns str → show TypeError if you
add int directly.
• Show fix: int(input(...)) — type conversion.
• Live build: a 'Personal Info' program asking name,
age, and grade.

✏️Writing Work:
• Write syntax and example for print() and input().
• Write a program: ask user's name and favourite
subject, then print a greeting.
• Explain in writing: 'Why must we convert input to int
for calculations?'
Teacher's Activity (Brief · Activity · Writing Guidance for Weak
Sub-Topic Students' Activity Homework Evaluation
Work) Students

5. Writing Simple 📘 Topic Brief: Students Do: 🤝 Support: 📚 Homework: 📝 Evaluation:


Python A Python program is a sequence of instructions that the • Type and run the Simple • Provide printed Simple • Write a program that • Run programs on screen —
Programs computer executes from top to bottom. Calculator in IDLE. Calculator code — student calculates the perimeter and teacher verifies output is correct.
Key concepts combined: variables + input() + print() + • Add subtraction and division to runs it first, then modifies. area of a square. • Peer review: swap with partner,
arithmetic operators. the calculator independently. • Focus only on + and * • Add comments to every line run their code, give one
Arithmetic operators: + (add) - (subtract) * (multiply) / • Write and run the Rectangle operators initially. of the program explaining what improvement tip.
(divide) % (modulus) ** (power). Area program. • Teacher writes pseudocode it does. • End-of-unit quiz: 10 questions
Example program — Simple Calculator: • Bonus: Write a program that on board before student covering all 5 sub-topics.
num1 = int(input('Enter first number: ')) calculates the average of 3 codes. • Portfolio: collect all written
num2 = int(input('Enter second number: ')) numbers. • Check each student's screen programs in book for marking.
print('Sum =', num1 + num2) after every 2 lines typed.
print('Product =', num1 * num2)
Comments: use # to write notes in code — Python
ignores them.

🎓 Teacher Activity:
• Recap previous lessons: variables, data types, print,
input.
• Introduce arithmetic operators with examples on
board.
• Live code a Simple Calculator program step by
step.
• Explain comments: # this is a comment — use them
to label code.
• Show common errors: SyntaxError, NameError —
how to read and fix them.
• Present a challenge program: Area of a Rectangle.

✏️Writing Work:
• Write all 6 arithmetic operators with examples.
• Copy and annotate the Simple Calculator program
(add comments to each line).
• Plan (pseudocode) then write: Area of a Rectangle
program.
• Write: What does the # symbol do in Python?

Prepared by: ________________________ Signature: ____________ Date: ____________ School: ________________________

You might also like