Code Writer
Level 3, 2026-08-25
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 the sum of the numbers from 6 to 18

Use: variables, loops[2]
Use a loop to print a list of numbers, including a line number on each line

Use: variables, loops, str()[2]
Assume you have a list of numbers X. Create a new variable that is equal to sum of all the numbers in X.

Use: variables, loops[2]

Test Using:
X = []
X = [1,1]
X = [80,76,83]
Assume you have a list of numbers Y. Create a new variable that is equal to sum of all the numbers in Y.

Use: variables, loops[2]

Test Using:
Y = []
Y = [1,1]
Y = [80,76,83]
Use a loop to print 71 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 non-empty list of scores B for your math class. Calculate the average of the scores.

Use: variables, loops[3]

Test Using:
B = [10]
B = [1,2,3,4,5]
B = [55,63,15]
A rectangle has sides of 6 and 3. Create variables for the sides of the shape and then calculate its area

Use: variables[2]