Code Writer
Level 3, 2026-03-18
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 variable LIST. Print each value in LIST.

Use: loops[2]

Test Using:
LIST = [1,2,3]
LIST = ['a','b',0]
LIST = []
Assume you have 2 lists of numbers with 10 elements each: Y and Z. Add the 8th elements of the lists together.

Use: variables[1]

Test Using:
Y = [1,2,3,...,10], Z = [1,2,3,...,10]
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 print the sum of the numbers from 1 to 13

Use: variables, loops[2]
Do the sum 35 - 64 and print the result

Use: [1]
Use a loop to print the average of the numbers from 6 to 20

Use: variables, loops[2]
Use a loop to print the average of the numbers from 1 to 11

Use: variables, loops[2]
Use a loop to print the sum of the numbers from 9 to 19

Use: variables, loops[2]
Do the sum 85 - 76 in code and store the result

Use: variables[1]