Code Writer
Level 3, 2026-04-17
Answers should be legal Python code, including indentation. Use the underscore _ to show a space.
Special functions: print(), range(), sqrt(), str()
Create a list containing 3 colors

Use: variables[1]
Create a list containing 2 numbers and then print each one

Use: variables, loops[2]
Print a variable that contains your first name

Use: variables[1]
Use a loop to add the numbers from 0 to 13

Use: variables, loops[2]
Assume you have a non-empty list of scores Q for your math class. Calculate the maximum of the scores.

Use: variables, loops[3]

Test Using:
Q = [10]
Q = [1,2,3,4,5]
Q = [95,9,10]
Use a loop to print the sum of the numbers from 3 to 20

Use: variables, loops[2]
A list contains a series of attacks on an enemy. The list looks like [1,2,3,1,1,2,...] where each element in the list is a number that means a type of attack:

1 is a light attack, taking 1HP
2 is a medium attack taking 4HP
3 is a strong attack taking 18HP

Write code to calculate the total amount of HP damage caused by all the attacks.

Use: variables, loops, if[3]

Test Using:
attacks = [1,2,3]
attacks = [1,2,3,3,2,1]
attacks = [69,77,33]
Do the sum 29 + 48 and print the result

Use: [1]