Code Writer
Level 3, 2026-05-24
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 non-empty list of numbers A. Write code to find the smallest number in the list.

Use: variables, loops, if[2]

Test Using:
A = [1,2,3]
A = [3,2,1,0]
A = [30,39,64]
Print each number from 0 to 16

Use: loops[2]
Assume you have a non-empty list F. Print the first element in the list.

Use: variables[1]

Test Using:
F = [1]
F = ['b','a','c']
F = [89,66,95]
Create two strings and join them together with a space between

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

Use: variables, loops[2]

Test Using:
B = [1,1]
B = [1,2,3,4,5]
B = [66,80,11]
Assume you have a list of numbers Q. Write code to count how many numbers in the list are smaller than 18

Use: variables, loops, if[3]

Test Using:
Q = []
Q = [18,0,25]
Q = [7,88,96]
Use a loop to create a string that has 22 "C" characters

Use: variables, loops[2]
Use a loop to create a string that has 18 "B" characters

Use: variables, loops[2]