Code Writer
Level 3, 2026-07-15
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 Z. If Z is bigger than 3 print "big", otherwise print "small"

Use: variables, if[2]

Test Using:
Z = 0
Z = 5
Z = 10
Create a list containing 5 fruit and then print each one

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

Use: variables[1]
Assume you have a list variable LIST. Print each value in LIST.

Use: loops[2]

Test Using:
LIST = [1,2,3]
LIST = ['a','b',0]
LIST = []
Print each number from 1 to 32

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 63!

Use: variables, loops, str()[2]
Create two strings and join them together with a space between

Use: variables[1]
Use a loop to create a string that has 15 "d" characters

Use: variables, loops[2]
Do the sum 48 - 88 and print the result

Use: [1]