Code Writer
Level 3, 2026-06-27
Answers should be legal Python code, including indentation. Use the underscore _ to show a space.
Special functions: print(), range(), sqrt(), str()
Assume you have a list of numbers VAR. Write code to add up the numbers in the list that are bigger than 7

Use: variables, loops, if[3]

Test Using:
VAR = []
VAR = [5,6,7,8,9,10,11,12,13,14,15]
VAR = [44,26,17]
Set two variables to different values then add them together

Use: variables[1]
Use a loop to multiply the numbers from 1 to 20

Use: variables, loops[2]
Assume you have a non-empty list of scores Y for your math class. Calculate the range of the scores.

Use: variables, loops[3]

Test Using:
Y = [10]
Y = [1,2,3,4,5]
Y = [83,7,95]
A right angled triangle has a hypotenuse (longest side, opposite the right angle) of 12 and another side of 4. Calculate the length of the missing side.

Use: variables, sqrt()[2]
Create a list containing 3 animals and then print each one

Use: variables, loops[2]
Print a variable that contains your first name

Use: variables[1]
Create a list containing 3 colors

Use: variables[1]