What does the term sequence mean?
The order the code should run; if not in the correct order the program won’t do what it is supposed to do
Selection (IF)
A decision - choosing which lines of instructions to run depending on a condition e.g. is age < 20?
Lists in Python
A data structure in Python to store a collection of data times groups under the same name.
(first item is index 0, square brackets are used)
Lists in Python: example
colours = [“Red”, “blue”, “green”, “purple”]
print(colours)
print(colours[3])
colours.append(“Yellow”)
Iteration WHILE: example
sentry = “Carry on”
while sentry == “Carry on” :
print(“I’ll keep going”)