Code Writer
Level 3, 2026-06-19
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 A. Write code to count how many numbers in the list are bigger than or equal to than 16

Use: variables, loops, if[3]

Test Using:
A = []
A = [16,0,25]
A = [12,10,82]
Assume you have a list variable LIST of numbers. Use a variable to add the items in the list

Use: variables, loops[2]

Test Using:
LIST = [1]
LIST = [1,2,3,4,5,6,7,8,9]
LIST = [21,40,52]
Do the sum 53 + 42 and print the result

Use: [1]
A right angled triangle has 2 shorter sides of 5 and 2. Calculate the other side (the "hypotenuse").

Use: variables, sqrt()[2]
Assume you have a list of numbers E. Write code to add up the numbers in the list that are bigger than 7

Use: variables, loops, if[3]

Test Using:
E = []
E = [5,6,7,8,9,10,11,12,13,14,15]
E = [68,33,24]
Assume you have a non-empty list of scores B for your math class. Calculate the mean of the scores.

Use: variables, loops[3]

Test Using:
B = [10]
B = [1,2,3,4,5]
B = [71,32,89]
Print your first name

Use: [1]