Code Writer
Level 3, 2026-04-20
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 35 lines with the numbers from 1 to 35 and each number times 14, separated by a commma. For example, line 1 would be "1, 14", line 2 would be "2, 28",etc.

Use: variables, loops, str()[2]
Use a loop to print the average of the numbers from 7 to 20

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

Use: variables, loops, str()[2]
Use a loop to print the sum of the numbers from 2 to 22

Use: variables, loops[2]
Write a loop that prints "moo" 63 times

Use: loops[2]
A right angled triangle has a hypotenuse (longest side, opposite the right angle) of 11 and another side of 4. Calculate the length of the missing side.

Use: variables, sqrt()[2]
Assume you have a list VAR with at least 2 elements. Create a new variable that is equal to the first two elements added together.

Use: variables[1]

Test Using:
VAR = ['a','b','c']
VAR = ['big','dog']
VAR = [98,94,62]
Print each number from 8 to 18

Use: loops[2]