/en-tutor-prep-p5-term1-ict-python/
/en-tutor-prep-p5-term1-ict-python/
General Inquiry: info@TutorZone.com.hk
Office Hours: Monday to Saturday - 9:00 AM to 6:00 PM
WhatsApp Monday to Sunday - 24 hours
Hotline: +852 6828 1809
Instant Support: +852 9061 3106

P5 Term 1 | ICT: First Steps in Python – input, if, print and indentation | Tutor Lesson Plan | 45-minute flow, script, common errors, practice with answers

P5 Term 1 | ICT: First Steps in Python – input, if, print and indentation | Tutor Lesson Plan | 45-minute flow, script, common errors, practice with answers

  • 2026-12-02

Lesson prep guide · P5 Term 1 ICT

P5 students meet Python and fail on colons and indentation rather than logic. Seven lines and three keywords, read aloud once, turn formatting into habit.

Lesson objectives Students can: (1) say what each of the seven lines does; (2) explain input, if and print and write the four-space indent; (3) find the two commonest errors – a string compared with a number, and a missing colon after if – and fix each.

01 Prior knowledge check (first 3 minutes)

If any of these is not secure, the lesson stalls; patch it first:

Skill Quick check Pass standard
Typing Find the quote, colon and bracket keys All three found
Comparing Which is larger, 80 or 60? 80
Reading English Read input, if and print aloud Correct pronunciation

02 Lesson flow (45 minutes)

Time Stage Tutor does Student does
0-5 min See the output Output first, code second Guess which line prints pass
5-15 min Read line by line Seven lines, one job each Name one job per line
15-27 min Three keywords input takes, if decides, print shows Write each once
27-37 min Indent and colon Four spaces, colon after if Fix two faulty examples
37-42 min Change the number Replace 80 Predict the output
42-45 min Exit check Collect three answers; note type, colon or indent Answer without notes

03 Teaching script (read it aloud)

Act one: read lines, do not memorise them

Line one is a comment starting with a hash and is ignored; line two takes a name through input into the variable name; line three sets score to 80; line four has a colon after if, which opens the indented block; lines five and seven print the two branches.

Common misconception: the whole program must be memorised. Reading it as take data, decide, output is enough to rewrite it.

Students repeat: take data, decide, output – three jobs.

Act two: three keywords and the indent

input always returns text, so convert before comparing numbers; if needs a colon and the next line indents four spaces; print shows the result. else takes no condition and handles the rest.

Common misconception: indentation is decoration. In Python indentation is the structure; one space out and the program does something else.

Students repeat: input takes, if decides, print shows; four spaces.

Act three: the two commonest errors

The first is type: input returns text, and “80” is not 80, so convert before comparing. The second is the colon: without it the next line becomes an ordinary instruction and both branches run. Both are solved by reading the error message and the lines.

Common misconception: a broken program must be retyped. Nine errors in ten sit on one symbol; read the message, find the line, change one character.

Students repeat: type and colon – two errors.

04 Question types and steps

Type Example Steps Answer
Read code What does line four do? Look at the keyword and indent It decides on the score
Fill in Add the colon and indent Colon after if Next line indented four
Predict What prints if the score is 50? Follow the if condition It prints try again
Debug Why do both branches run? Find the missing colon Add colon and indent
First Python: 7 lines, 4-space indent, 3 keywords (input, if, print), 2 branchesmain.py1# input and score2name = input(“Name: “)3score = 804if score >= 60:5 print(“Pass”)6else:7 print(“Try again”)Output (what runs)> Name: Amy> Pass– input returns text; use int before comparing numbers– a colon follows if, and the next line indents 4 spaces– else takes no condition; it handles the restThree keywords: input takes data, if decides, print shows the result; the rest is variables and text.Most errors are indentation or types: missing quotes and unconverted numbers cover nearly all of them.

Read three lines first: input, decision, output; if you can explain those, you can read the program.

Sanity check (must teach):Seven lines, three keywords, a four-space indent, two branches; 80 is at least 60 so pass prints; the six stages add to 45 minutes.

05 Three independent practice questions

Question Answer What to observe
What type does input return, and what must happen before comparing? Text; convert to an integer first Compares directly
What happens if the colon after if is missing? The next line is ordinary code and both branches run Thinks Python stops with an error
The score becomes 50: what prints? Try again, because 50 is below 60 Still prints pass

06 Common errors and correction lines

Error Student usually writes Tutor says
Type Comparing input text directly “Convert to an integer first.”
No colon if score is at least 60 then nothing “if always takes a colon.”
Ragged indent Two lines indented differently “One block, one indent, four spaces.”
No quotes print(Pass) without quotes “Text goes inside quotes.”

07 Homework (paper and question numbers)

08 Exit check (last 3 minutes)

Question Answer Verdict
The three keywords? input, if, print Reteach act two
What follows if? A colon, then a four-space indent Reteach act two
What prints at a score of 50? Try again Reteach act three

09 Tutor FAQ

Which year is this for?

P5 Term 1 first Python; P4 can read only, P6 can add while and lists.

Can students type it all in 45 minutes?

Enough to read and fix two errors; typing the whole program is homework.

Is there a Python paper?

No separate paper; maths comparison questions and Chinese step explanations support it.

Find a tutor freeTutor sign-up →

©2026 TutorZone · www.tutorzone.com.hk · Terms of use · All rights reserved. Original TutorZone material for personal study and teaching only; not for resale or republication.

Take this guide with you

Reading the full guide is free. Downloading the print version, printing it for students, or taking a whole-level pack needs a tutor account (free).

Registered tutors also get:

Register as a tutor — freeAlready registered? Log in

Join as a tutor or coach — academic, music, sports, arts, STEM. Free to register. See how it works →