Code Writer
Level 3, 2026-05-11
Answers should be legal Python code, including indentation. Use the underscore _ to show a space.
Special functions: print(), range(), sqrt(), str()
A rectangle has sides of 8 and 8. Create variables for the sides of the shape and then calculate its perimeter

Use: variables[2]
Assume you have a non-empty list Q. Create a new variable that is equal to the first element in the list.

Use: variables[1]

Test Using:
Q = [1]
Q = ['a','b','c']
Q = [85,61,67]
Assume you have a list of numbers F. Create a new variable that is equal to sum of all the numbers in F.

Use: variables, loops[2]

Test Using:
F = []
F = [1,1]
F = [17,47,26]
Create a list containing 4 animals and then print each one

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

Use: variables, loops[3]

Test Using:
B = [10]
B = [1,2,3,4,5]
B = [85,11,47]
Write a loop that prints "dum" 62 times

Use: loops[2]
A rectangle has sides of 8 and 8. Create variables for the sides of the shape and then calculate its area

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

Use: variables[1]