Code Writer
Level 3, 2026-02-19
Answers should be legal Python code, including indentation. Use the underscore _ to show a space.
Special functions: print(), range(), sqrt(), str()
Use a loop to print 82 lines with a line number and the word "e". For example, line 1 should be "1: e", line 2 would be "2: e", etc.

Use: variables, loops, str()[2]
Assume you have 2 lists of numbers with 12 elements each: B and E. Add the 10th elements of the lists together.

Use: variables[1]

Test Using:
B = [1,2,3,...,12], E = [1,2,3,...,12]
Create two strings and join them together with a space between

Use: variables[1]
Use a loop to print the average of the numbers from 0 to 6

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

Use: variables, loops[3]

Test Using:
F = [10]
F = [1,2,3,4,5]
F = [94,15,23]
A right angled triangle has 2 shorter sides of 9 and 4. Calculate the other side (the "hypotenuse").

Use: variables, sqrt()[2]
Print a variable that contains your first name

Use: variables[1]
Use a loop to create a string that has 24 "d" characters

Use: variables, loops[2]
Assume you have two non-empty lists of numbers Z and A. Create a new variable that is equal to the first element of each list added together.

Use: variables[1]

Test Using:
Z = [1], A = [1]
Z = [1,2,3], A = [3,2,1]
Z = [31,73,84], A = [23,65,30]