Code Writer
Level 3, 2026-07-17
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 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 = []
Print each number from 0 to 49

Use: loops[2]
Assume you have a list variable LIST of numbers. Use a variable to add the items in the list

Use: variables, loops[2]

Test Using:
LIST = [1]
LIST = [1,2,3,4,5,6,7,8,9]
LIST = [48,18,76]
Do the sum 35 / 33 and print the result

Use: [1]
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 = 39, T = 55
Print each number from 1 to 49

Use: loops[2]
Write a loop that prints "dumdum" 33 times

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

Use: variables, loops[2]