Code Writer
Level 3, 2026-05-08
Answers should be legal Python code, including indentation. Use the underscore _ to show a space.
Special functions: print(), range(), sqrt(), str()
Print each number from 8 to 21

Use: loops[2]
Use a loop to print a list of numbers, including a line number on each line

Use: variables, loops, str()[2]
Use a loop to add the numbers from 2 to 14

Use: variables, loops[2]
Assume you have a list of numbers VAR. Write code to count how many numbers in the list are smaller than or equal to than 2

Use: variables, loops, if[3]

Test Using:
VAR = []
VAR = [2,0,25]
VAR = [98,94,6]
Use a loop to multiply the numbers from 9 to 29

Use: variables, loops[2]
Write a loop that prints "dumb" 41 times

Use: loops[2]
Do the sum 91 - 30 in code and store the result

Use: variables[1]
Assume you have a list VAR with at least 2 elements. Create a new variable that is equal to the first two elements added together.

Use: variables[1]

Test Using:
VAR = ['a','b','c']
VAR = ['big','dog']
VAR = [73,34,7]