Code Writer
Level 3, 2026-02-13
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 multiply the numbers from 4 to 18

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

Use: variables, loops[2]
Assume you have a non-empty list VAR. Create a new variable that is equal to the first element in the list.

Use: variables[1]

Test Using:
VAR = [1]
VAR = ['a','b','c']
VAR = [97,87,94]
Do the sum 39 / 91 and print the result

Use: [1]
Print a variable that contains your first name

Use: variables[1]
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 perimeter of the rectangle.

Use: variables[2]

Test Using:
S = 13, T = 89
Use a loop to add the numbers from 0 to 12

Use: variables, 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 = [5,93,47]
Use a loop to add the numbers from 0 to 15

Use: variables, loops[2]