Code Writer
Level 3, 2026-10-17
Answers should be legal Python code, including indentation. Use the underscore _ to show a space.
Special functions: print(), range(), sqrt(), str()
A triangle has sides of 9, 8 and 4. Create variables for the sides of the triangle and then calculate its perimeter.

Use: variables[2]
Write a loop that prints "dumb" 83 times

Use: loops[2]
Write a loop that prints "diddles" 32 times

Use: loops[2]
Use a loop to multiply the numbers from 1 to 42

Use: variables, loops[2]
Print each number from 3 to 14

Use: loops[2]
Print each number from 5 to 11

Use: 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 84!

Use: variables, loops, str()[2]
Set a variable to one value then change that value

Use: variables[1]