A class register holds thirty names, and a seating plan holds rows and columns of them.
3 lessons, about 1 h 15 min3 simulations10 problems3 practice questionsPython in every lesson
One variable holds one value, but a class has thirty names. This lesson declares one-dimensional arrays in Cambridge pseudocode, writes values into them and reads them back with loops, and compares them with Python lists.
A timetable, a seating plan and a game board all have rows and columns. This lesson declares two-dimensional arrays in Cambridge pseudocode and visits every element with nested loops, as the syllabus example of row totals does.
Variables and arrays are lost when a program stops. This lesson explains why programs store data in files, and how Cambridge pseudocode opens, reads, writes and closes a text file, beside the same steps in Python.
Log in to join the discussion.
Loading…