/en-tutor-prep-s3-term1-ict-python-basics/
/en-tutor-prep-s3-term1-ict-python-basics/
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

S3 Term 1 | ICT: Python Basics – Tutor Lesson Plan | 45-minute flow, teaching script, common errors, practice with answers

S3 Term 1 | ICT: Python Basics – Tutor Lesson Plan | 45-minute flow, teaching script, common errors, practice with answers

  • 2026-11-30

Lesson prep guide · S3 Term 1 ICT

First-time Python students stall in three places: quoted digits stop adding up, the single and double slash look the same, and one indentation slip stops the whole file. This lesson clears all three with six side-by-side lines.

Lesson objectives Students can (1) tell strings from numbers and what plus means for each; (2) convert with int and str before computing; (3) explain division, floor division and remainder, and the role of indentation in Python.

01 Prior knowledge check (first 3 minutes)

If any item below fails, fix it first, or this lesson stalls:

Skill Quick check Pass standard
Strings Quoted 5 against bare 5 Text against a number
Division What is 10 divided by 4 2.5, not 2
Indentation Do leading spaces matter Python uses them to group statements

02 Lesson flow (45 minutes)

Time Stage Tutor does Student does
0–5 min Opening: one print Show print with a string and with a number Say how the output differs
5–14 min Strings and numbers Show 3 plus 5 as 8 and “3” plus “5” as “35” Decide which of three expressions fails
14–23 min Conversion Explain int and str and model int(“12”) plus 5 Convert “7” and add 3
23–32 min Three divisions Show 2.5, 2 and 2 with a note on float precision Work out 17 modulo 5
32–40 min Indentation and comments Show the indentation error message, then a useful comment Find the misindented line in a sample
40–45 min Exit check Collect three answers and sort string, conversion and division errors Work without notes

03 Teaching script (read it aloud)

Act one: quotes turn digits into text

Python takes quotes seriously. 3 plus 5 is 8 because both are numbers, but “3” plus “5” is “35” because quotes make strings and plus joins them. So “35” is not thirty-five, it is two characters. Counting needs a conversion, so int(“12”) plus 5 is 17, and the reverse is str(12). len(“TutorZone”) is 9, and strings multiply: “ab” times 3 is “ababab”, six characters.

Most common misconception: that Python treats “3” as 3. It does not; quoted text stays text and adding it to a number raises a type error.

Students restate: quotes mean a string, plus joins strings, and counting needs int.

Act two: one slash, two slashes, different answers

Division has three forms worth drilling. Ten divided by four with a single slash is 2.5, true division keeping the decimal; floor division with a double slash is 2, which drops the fraction rather than rounding; ten modulo four with a percent sign is 2, the remainder. All three can appear in one question: 17 people in groups of 5 need 3 groups with 2 left over. Decimals also carry error, since 0.1 plus 0.2 is 0.30000000000000004 rather than exactly 0.3, so compare after rounding.

Second misconception: that the double slash rounds. It always rounds down, so 2.9 also gives 2.

Students restate: single slash keeps decimals, double slash rounds down, percent gives the remainder.

Act three: indentation and comments make code readable

Python groups statements by indentation rather than braces. Inside one if or for, every line indents by the same amount, conventionally four spaces, and one space too many or too few raises IndentationError. That is a syntax error, which the machine cannot even read, unlike a logic error. Comments start with a hash and explain why, not what: writing that the numerator is the total score and the denominator the number of subjects is more useful than writing add them up. Run the code with two data sets, one normal and one boundary such as zero or an empty string.

Students restate: group statements indent together, four spaces by convention, and a mismatch is a syntax error.

04 Question types and steps

Type Example Steps Answer
String or number 3 plus 5 against “3” plus “5” Numbers add, strings join 8 and “35”
Conversion int(“12”) plus 5 Convert then add 17
Division 10 over 4, floor, 17 modulo 5 Single slash, double slash, percent 2.5, 2, 2
Indentation One line in an if indented one extra space Inconsistent indentation IndentationError, a syntax error
The same digits: quoted means a string join, unquoted means additionexpressionresultwhy3 plus 58numbers add“3” plus “5”“35”strings joinint(“12”) plus 517convert first10 divided by 42.5true division10 floor divided by 42rounds down17 modulo 52remainder

Python is strict: 3 plus 5 is 8, but quoted “3” plus “5” is “35”, because quotes make strings and the plus joins them. Counting needs a conversion, so int(“12”) plus 5 is 17. Division comes in two forms: 10 divided by 4 is 2.5 and floor division gives 2, while 17 modulo 5 is 2. Strings multiply by integers, “ab” times 3 is “ababab”, six characters, and len(“TutorZone”) is 9. Decimals carry rounding error: 0.1 plus 0.2 is not exactly 0.3 but 0.30000000000000004.

Sanity check (must teach):Check strings against output: 3 plus 5 is 8, “3” plus “5” is the two-character “35”, and int(“12”) plus 5 is 17. Keep the three divisions together: 10 over 4 is 2.5, floor is 2, and 17 modulo 5 is 2; the check is quotient times divisor plus remainder, so 2 times 4 plus 2 is 10 and 3 times 5 plus 2 is 17, meaning the quotient for 17 is 3 with remainder 2. Float precision shows with 0.1 plus 0.2, which is 0.30000000000000004, so round before comparing.

05 Three independent practice questions

Question Answer What to observe
What is int(“12”) plus 5? Convert “12” to 12 and add 5 for 17 “125” means the conversion was skipped and strings joined
What is “3” plus “5”? Strings join, so “35” 8 means they were treated as numbers
What is 17 modulo 5? 17 divided by 5 is 3 remainder 2, so 2 3 is the quotient rather than the remainder

06 Common errors and correction lines

Error Student usually writes Tutor says
Quotes as decoration “‘3’ plus ‘5’ should be 8” “Quotes make strings and strings join, so “35”; write int(“3″) plus 5 for 8.”
Floor as rounding “10 floor divided by 4 is 3 because 2.5 rounds up” “Floor division rounds down, so 2.5 gives 2, never 3.”
Free indentation “Any indentation is fine as long as it looks neat” “Statements in one block share the same indentation, four spaces by convention, or IndentationError.”
Comparing floats directly “0.1 plus 0.2 equals 0.3 so test with equality” “Inside the machine it is 0.30000000000000004, so round to two decimals first.”

07 Homework (paper and question numbers)

08 Exit check (last 3 minutes)

Question Answer Verdict
What happens with “3” plus 5? A type error; write int(“3”) plus 5 to get 8 8 means strings are still unclear; reteach act one
What are 10 over 4 and 10 floor over 4? 2.5 and 2 Both 2 means the slashes are confused; reteach act two
Which kind of error is inconsistent indentation? A syntax error, IndentationError Logic error means the classification is unclear; reteach act three

09 Tutor FAQ

Which year is this page for?

S3 Term 1, the Python introduction in local secondary ICT; later years cover lists, dictionaries and file handling.

Is 45 minutes enough for strings, division and indentation?

Yes. Nine minutes on strings, nine on conversion, nine on the three divisions and eight on indentation and comments, with the rest for practice and the exit check.

Is there a matching worksheet?

Yes. The homework links to questions 4, 5 and 8 of set 1 of the S3 ICT algorithms paper, all with answers.

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.

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