Code Writer
Level 3, 2026-09-22
Answers should be legal Python code, including indentation. Use the underscore _ to show a space.
Special functions: print(), range(), sqrt(), str()
Print a variable that contains your first name

Use: variables[1]
Assume you have a non-empty list of numbers A. Create a new variable that is equal all the numbers in A multiplied together.

Use: variables, loops[2]

Test Using:
A = [1,1]
A = [1,2,3,4,5]
A = [3,81,94]
Use a loop to print the average of the numbers from 6 to 23

Use: variables, loops[2]
Write a loop that prints "error" 84 times

Use: loops[2]
Assume you have a list of letters B. Write code to count the number of times the letter "e" appears in the list.

Use: variables, loops, if[2]

Test Using:
B = []
B = ['e','a','z']
B = ['e','e','e']
Print each number from 0 to 46

Use: loops[2]
Assume you have 2 lists of numbers that are the same size: Z and A. Count how many times an element in Z is smaller than or equal to the element in the same position in A.

Use: variables, loops[2]

Test Using:
Z = [5], A = [5]
Z = [1,2,3], A = [3,2,1]
Z = [61,91,9], A = [2,11,64]
Assume you have a non-empty list of numbers E. Write code to find the biggest number in the list.

Use: variables, loops, if[2]

Test Using:
E = [1,2,3]
E = [3,2,1,0]
E = [34,12,16]