Code Writer
Level 3, 2026-02-12
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 0 to 11

Use: loops[2]
Use a loop to print the sum of the numbers from 5 to 22

Use: variables, 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 list of numbers B. Write code to count how many numbers in the list are bigger than or equal to than 11

Use: variables, loops, if[3]

Test Using:
B = []
B = [11,0,25]
B = [54,85,14]
Use a loop to create a string that has 12 "c" characters

Use: variables, loops[2]
Use a loop to print 33 lines with the numbers from 1 to 33 and each number times 10, separated by a commma. For example, line 1 would be "1, 10", line 2 would be "2, 20",etc.

Use: variables, loops, str()[2]
Create a list containing 3 numbers

Use: variables[1]
Assume you have a list of numbers A. Print the 7th element of A.

Use: variables[1]

Test Using:
A = [1,2,3,4,5,6,7,8,9,10]