Code Writer
Level 3, 2026-08-26
Answers should be legal Python code, including indentation. Use the underscore _ to show a space.
Special functions: print(), range(), sqrt(), str()
Assume you have a non-empty list of numbers VAR. Write code to find the biggest number in the list.

Use: variables, loops, if[2]

Test Using:
VAR = [1,2,3]
VAR = [3,2,1,0]
VAR = [64,20,92]
Use a loop to print a list of numbers, including a line number on each line

Use: variables, loops, str()[2]
Assume you have a variable A. If A is bigger than 6 print "big", otherwise print "small"

Use: variables, if[2]

Test Using:
A = 0
A = 5
A = 10
Assume you have a list F with at least 2 elements. Create a new variable that is equal to the first two elements added together.

Use: variables[1]

Test Using:
F = ['a','b','c']
F = ['big','dog']
F = [44,20,91]
Assume you have a list variable LIST of numbers. Use a variable to add the items in the list

Use: variables, loops[2]

Test Using:
LIST = [1]
LIST = [1,2,3,4,5,6,7,8,9]
LIST = [4,23,43]
Assume you have a list of numbers E. Print the 7th element of E.

Use: variables[1]

Test Using:
E = [1,2,3,4,5,6,7,8,9,10]
Use a loop to multiply the numbers from 8 to 25

Use: variables, loops[2]
Use a loop to create a string that has 36 "b" characters

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

Use: variables[1]

Test Using:
Y = ['a','b','c']
Y = ['big','dog']
Y = [44,20,91]