Code Writer
Level 3, 2026-05-19
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 average of the numbers from 8 to 26

Use: variables, loops[2]
Create a list containing 4 animals

Use: variables[1]
Print each number from 1 to 24

Use: loops[2]
Assume you have a list variable LIST. Count the number of items in LIST and print the result.

Use: loops, variables[2]

Test Using:
LIST = ['a','b','c']
LIST = [1,2,3,4,5,6]
LIST = []
Assume you have a variable F. If F is smaller than 6 add 3 to it, otherwise subtract 2 from it

Use: variables, if[2]

Test Using:
F = 0
F = 6
F = 10
Create a list containing 4 colors

Use: variables[1]
Use a loop to add the numbers from 6 to 29

Use: variables, loops[2]
Create a list containing 4 numbers

Use: variables[1]
Print each number from 4 to 20

Use: loops[2]