Code Writer
Level 3, 2026-05-11
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 print 46 lines with a line number and the word "bloop". For example, line 1 should be "1: bloop", line 2 would be "2: bloop", etc.

Use: variables, loops, str()[2]
Assume you have a list of letters A. Write code to count the number of times the letter "C" appears in the list.

Use: variables, loops, if[2]

Test Using:
A = []
A = ['C','a','z']
A = ['C','C','C']
Use a loop to print 90 lines with a line number and the word "dum". For example, line 1 should be "1: dum", line 2 would be "2: dum", etc.

Use: variables, loops, str()[2]
Use a loop to create a string that has 17 "G" characters

Use: variables, loops[2]
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 = []
Use a loop to add the numbers from 9 to 26

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

Use: variables, loops[2]
Create a list containing 5 colors

Use: variables[1]