Code Writer
Level 3, 2026-07-29
Answers should be legal Python code, including indentation. Use the underscore _ to show a space.
Special functions: print(), range(), sqrt(), str()
Use a loop to create a string that has 38 "C" characters

Use: variables, loops[2]
Print a list of strings, including a line number on each line

Use: variables, loops, str()[2]
Assume you have a non-empty list of numbers Y. Write code to find the smallest number in the list.

Use: variables, loops, if[2]

Test Using:
Y = [1,2,3]
Y = [3,2,1,0]
Y = [99,16,77]
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 = []
Write a loop that prints "dumbdumb" 44 times

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

Use: variables, loops[2]

Test Using:
Z = [1,1]
Z = [1,2,3,4,5]
Z = [92,37,43]
Use a loop to print the sum of the numbers from 0 to 9

Use: variables, loops[2]
Create a list containing 4 animals

Use: variables[1]