Year 9 - Computing
Iterating through data structures
Python programming with sequences of data
Study Hub
This pupil-friendly study guide includes a unit summary, clear notes, common mistakes, and quick questions with answers.
Year 9 - Computing
Python programming with sequences of data
In this unit pupils will discover how data is represented and processed in sequences, such as lists and strings. They will cover a spectrum of operations on sequences of data, that range from accessing an individual element to manipulating the entire sequence though real world practical activites.
You will learn to use iteration to repeatedly add items to lists and check the contents of a string.
Condition-controlled iteration is implemented using while loops in Python. A string is like a list in structure but is immutable, so elements cannot be changed, added or removed.
the process of repeating a sequence of instructions within a program loop. Add one real device or system example to prove understanding.
Mistake: Strings are mutable meaning that any character within the string can be changed. Correction: Strings are immutable. The elements of a string cannot be changed. If changes to the string are required, the whole string must be rewritten.
Browse all guides in the Year 9 Computing guide library.