Code Writer
Level 3, 2026-09-21
Answers should be legal Python code, including indentation. Use the underscore _ to show a space.
Special functions: print(), range(), sqrt(), str()
A rectangle has sides of 7 and 8. Create variables for the sides of the shape and then calculate its area

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

Use: variables[2]
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
Assume you have 2 lists of numbers with 17 elements each: Z and VAR. Add the 9th elements of the lists together.

Use: variables[1]

Test Using:
Z = [1,2,3,...,17], VAR = [1,2,3,...,17]
Do the sum 46 * 92 in code and store the result

Use: variables[1]
Create two strings and join them together with a space between

Use: variables[1]
Print each number from 8 to 25

Use: loops[2]
Use a loop to print the sum of the numbers from 4 to 17

Use: variables, loops[2]
Assume you have a list variable LIST. Count the number of items in LIST.

Use: loops, variables[2]

Test Using:
LIST = ['a','b','c']
LIST = [1,2,3,4,5,6]
LIST = []