Code Writer
Level 3, 2026-08-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]
Assume you have a non-empty list of scores Q for your math class. Calculate the mean of the scores.

Use: variables, loops[3]

Test Using:
Q = [10]
Q = [1,2,3,4,5]
Q = [80,91,77]
Assume you have 2 variables S and T that are equal to the sides of a rectangle. Calculate another variable that is equal to the area of the rectangle.

Use: variables[2]

Test Using:
S = 45, T = 29
Use a loop to print the average of the numbers from 0 to 3

Use: variables, 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 a list of numbers VAR. Create a new variable that is equal to sum of all the numbers in VAR.

Use: variables, loops[2]

Test Using:
VAR = []
VAR = [1,1]
VAR = [27,57,85]
Create two strings and join them together with a space between

Use: variables[1]
Set a variable to one value then change that value

Use: variables[1]