Code Writer
Level 3, 2026-10-20
Answers should be legal Python code, including indentation. Use the underscore _ to show a space.
Special functions: print(), range(), sqrt(), str()
Do the sum 56 / 94 in code and store the result

Use: variables[1]
Assume you have two non-empty lists of numbers VAR and F. Create a new variable that is equal to the first element of each list added together.

Use: variables[1]

Test Using:
VAR = [1], F = [1]
VAR = [1,2,3], F = [3,2,1]
VAR = [5,98,21], F = [58,81,88]
Assume you have a list of numbers Z. Write code to count how many numbers in the list are bigger than or equal to than 20

Use: variables, loops, if[3]

Test Using:
Z = []
Z = [20,0,25]
Z = [84,38,25]
Set two variables to different values then add them together

Use: variables[1]
Write a loop that prints "error" 58 times

Use: loops[2]
Use a loop to print the average of the numbers from 0 to 8

Use: variables, loops[2]
Assume you have a non-empty list Q. Print the first element in the list.

Use: variables[1]

Test Using:
Q = [1]
Q = ['b','a','c']
Q = [94,60,3]
Assume you have a non-empty list Z. Create a new variable that is equal to the first element in the list.

Use: variables[1]

Test Using:
Z = [1]
Z = ['a','b','c']
Z = [7,68,18]
Set two variables to different strings then make a new variable that combines them with a "G" in between

Use: variables[1]
Assume you have a list variable LIST. Print each value in LIST.

Use: loops[2]

Test Using:
LIST = [1,2,3]
LIST = ['a','b',0]
LIST = []