Code Writer
Level 3, 2026-02-11
Answers should be legal Python code, including indentation. Use the underscore _ to show a space.
Special functions: print(), range(), sqrt(), str()
Set a variable to one value then change that value

Use: variables[1]
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 = []
Use a loop to multiply the numbers from 4 to 23

Use: variables, loops[2]
Do the sum 76 - 79 and print the result

Use: [1]
Assume you have a list of numbers VAR. Write code to count the number of times the number 63 appears in the list.

Use: variables, loops, if[2]

Test Using:
VAR = [63]
VAR = [0,63,-1,63,99,63]
VAR = [36,17,45]
Use a loop to print 61 lines with the numbers from 1 to 61 and each number times 15, separated by a commma. For example, line 1 would be "1, 15", line 2 would be "2, 30",etc.

Use: variables, loops, str()[2]
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 = []
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 = [14,78,91]
Do the sum 91 - 66 in code and store the result

Use: variables[1]