Code Writer
Level 3, 2026-04-24
Answers should be legal Python code, including indentation. Use the underscore _ to show a space.
Special functions: print(), range(), sqrt(), str()
Create two strings and join them together with a space between

Use: variables[1]
Assume you have 2 lists of numbers with 10 elements each: Q and Z. Add the 5th elements of the lists together.

Use: variables[1]

Test Using:
Q = [1,2,3,...,10], Z = [1,2,3,...,10]
Print a variable that contains your first name

Use: variables[1]
A triangle has sides of 3, 2 and 3. Create variables for the sides of the triangle and then calculate its perimeter.

Use: variables[2]
A right angled triangle has a hypotenuse (longest side, opposite the right angle) of 12 and another side of 3. Calculate the length of the missing side.

Use: variables, sqrt()[2]
Assume you have a non-empty list of numbers F. Create a new variable that is equal all the numbers in F multiplied together.

Use: variables, loops[2]

Test Using:
F = [1,1]
F = [1,2,3,4,5]
F = [57,2,89]
Assume you have a variable S that is the length of the side of a square. Calculate another variable that is equal to the area of the square.

Use: variables[2]

Test Using:
S = 80
Assume you have a non-empty list of numbers VAR. Create a new variable that is equal all the numbers in VAR multiplied together.

Use: variables, loops[2]

Test Using:
VAR = [1,1]
VAR = [1,2,3,4,5]
VAR = [57,2,89]
Assume you have a variable VAR. If VAR is bigger than 6 print "big", otherwise print "small"

Use: variables, if[2]

Test Using:
VAR = 0
VAR = 5
VAR = 10