sequence
the order the code should run, if incorrect then program won’t do what it is supposed to
Selection (IF)
a decision - choosing which lines of the instructions to run depending on a condition
e.g
if age < 18:
variable
a variable is like a box that is stored in the computer’s memory, variables can be labelled
what is ==
equal to
what is !=
not equal to
what is >
greater than
what is <
less than
Iteration (FOR)
repeating lines of instructions when you know how many times to repeat
e.g
for counter in range(10):
Iteration (WHILE)
While loop will keep repeating until soemthing changes. It uses a specific variable called a ‘sentry’
e.g
sentry = “Carry on”
while sentry == “Carry on”: