Code Writer
Level 3, 2026-07-02
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 0 to 6

Use: variables, loops[2]
Use a loop to add the numbers from 2 to 14

Use: variables, loops[2]
Assume you have a list of numbers F. Write code to add up the numbers in the list that are smaller than or equal to than 14

Use: variables, loops, if[3]

Test Using:
F = []
F = [5,6,7,8,9,10,11,12,13,14,15]
F = [13,97,90]
Use a loop to create a string that has 28 "g" characters

Use: variables, loops[2]
A factorial of a number is all the numbers from 1 to that number multiplied together, so 4! = 1x2x3x4. Write code using a loop to calculate 42!

Use: variables, loops, str()[2]
Set two variables to different strings then make a new variable that combines them with a "F" in between

Use: variables[1]
Assume you have a non-empty list of scores VAR for your math class. Calculate the mean of the scores.

Use: variables, loops[3]

Test Using:
VAR = [10]
VAR = [1,2,3,4,5]
VAR = [39,12,34]