Middle School · Explain progression

Computer Science & Programming · Grade 7

Detailed lessons with teaching guidance, vocabulary, activities, practice and misconception notes, following the concrete-to-abstract progression.

1

1. Python basics: variables, types and operators

Use Python variables, input/output, numeric and string types, operators and type conversion.

Teacher-guided activity

Use an offline Python environment if connectivity is unreliable. Teach learners not to paste private data into public tools.

Practice and application

1. Write Python to calculate the mean of three entered scores. 2. Write a function is_even(n) that returns True for even integers.

Answer guidance and assessment

1. a = float(input()); b = float(input()); c = float(input()); print((a + b + c) / 3) 2. def is_even(n): return n % 2 == 0

Likely misconception

input() returns a STRING — '5' + '3' gives '53', not 8; convert with int() or float() first.

Check your understanding

0/3

input() in Python returns a…

To calculate with input, you must convert with…

'5' + '3' in Python gives…

2

2. Control flow, functions and testing

Use if/elif/else, for and while loops to solve small problems; Write and call functions with parameters and return values; use lists and simple string methods; Test programs with normal, boundary and invalid inputs; interpret error messages and trace code.

Practice and application

1. Predict the output: for i in range(2, 7, 2): print(i). 2. Why should you test a program with boundary inputs like 0 and empty lists?

Answer guidance and assessment

1. 2, 4, 6 2. Boundary cases often reveal bugs that normal inputs hide.

Likely misconception

range(2, 7, 2) starts at 2, stops BEFORE 7, steps by 2 — the stop value is exclusive.

Check your understanding

0/3

for i in range(2, 7, 2) prints…

def is_even(n): return n % 2 == 0 — this is a…

Boundary inputs like 0 and empty lists are tested because…

3

3. Binary, data and networks

Explain binary representation, file formats, data quality and simple spreadsheet analysis; Describe how devices communicate over networks and distinguish the internet, web, browser and search engine.

Practice and application

1. Convert the binary number 1011 to denary. 2. What is the difference between the internet, the web and a browser?

Answer guidance and assessment

1. 1×8 + 0×4 + 1×2 + 1×1 = 11. 2. The internet is the global network; the web is information services on it; a browser is software used to view web pages.

Likely misconception

Binary place values double each position (1, 2, 4, 8...) — learners often count digits instead of weighting them.

Check your understanding

0/3

Binary 1011 in denary is…

Binary place values are…

The WEB is…

Grade mini-project

Build a documented program that solves a real user problem. Include pseudocode, test cases, debugging notes and a short reflection on privacy or reliability.

01

Unit 1

Functions, lists, strings, testing and debugging strategies

Annual overviewLessons abovePractice set pending
02

Unit 2

Algorithms: search/sort intuition, complexity as comparison

Annual overviewLessons abovePractice set pending
03

Unit 3

Web technologies, HTML/CSS/JavaScript foundations and databases

Annual overviewLessons abovePractice set pending

Course strands this grade draws from

1. Digital systems and computational thinking2. Algorithms and programming3. Data, information and databases4. Networks, cybersecurity and systems5. AI, software engineering and digital ethics