Code Writer
Level 3, 2026-04-25
Answers should be legal Python code, including indentation. Use the underscore _ to show a space.
Special functions: print(), range(), sqrt(), str()
Assume you have a variable E. If E is smaller than 2 add 4 to it, otherwise subtract 8 from it

Use: variables, if[2]

Test Using:
E = 0
E = 2
E = 10
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 = 89, T = 28
Create a list containing 3 colors and then print each one

Use: variables, loops[2]
Print each number from 1 to 17

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

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

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

Use: variables, loops[2]
Do the sum 40 / 58 in code and store the result

Use: variables[1]