Code Writer
Level 3, 2026-02-09
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 1 to 29

Use: loops[2]
Assume you have a list of numbers F. Write code to count how many numbers in the list are bigger than or equal to than 18

Use: variables, loops, if[3]

Test Using:
F = []
F = [18,0,25]
F = [65,86,15]
Use a loop to print 44 lines with a line number and the word "e". For example, line 1 should be "1: e", line 2 would be "2: e", etc.

Use: variables, loops, str()[2]
Print each number from 1 to 16

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

Use: variables, loops[2]

Test Using:
B = [5], Y = [5]
B = [1,2,3], Y = [3,2,1]
B = [97,93,2], Y = [58,12,37]
Assume you have 2 lists of numbers that are the same size: E and F. Count how many times an element in E is bigger than or equal to the element in the same position in F.

Use: variables, loops[2]

Test Using:
E = [5], F = [5]
E = [1,2,3], F = [3,2,1]
E = [97,93,2], F = [58,12,37]
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 = []