Code Writer
Level 3, 2026-09-28
Answers should be legal Python code, including indentation. Use the underscore _ to show a space.
Special functions: print(), range(), sqrt(), str()
Print each number from 3 to 21

Use: loops[2]
Do the sum 35 / 36 and print the result

Use: [1]
Assume you have a list variable LIST. Count the number of items in LIST and print the result.

Use: loops, variables[2]

Test Using:
LIST = ['a','b','c']
LIST = [1,2,3,4,5,6]
LIST = []
Print each number from 1 to 45

Use: loops[2]
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 = []
Assume you have 2 lists of numbers with 14 elements each: B and A. Add the 8th elements of the lists together.

Use: variables[1]

Test Using:
B = [1,2,3,...,14], A = [1,2,3,...,14]
Use a loop to print 86 lines with a line number and the word "fake". For example, line 1 should be "1: fake", line 2 would be "2: fake", etc.

Use: variables, loops, str()[2]
Assume you have 2 lists of numbers that are the same size: Q and E. Count how many times an element in Q is bigger than the element in the same position in E.

Use: variables, loops[2]

Test Using:
Q = [5], E = [5]
Q = [1,2,3], E = [3,2,1]
Q = [63,37,63], E = [83,93,20]
Create two strings and join them together with a space between

Use: variables[1]