Code Writer
Level 3, 2026-03-02
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 4 numbers and then print each one
Use: variables, loops[2]
|
|
|
|
Assume you have a non-empty list of numbers A. Write code to find the smallest number in the list.
Use: variables, loops, if[2]
|
|
|
Test Using: A = [1,2,3] A = [3,2,1,0] A = [56,70,97] |
Print each number from 1 to 36
Use: loops[2]
|
|
|
|
Print each number from 1 to 13
Use: loops[2]
|
|
|
|
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 = [56,70,97] |
Print your first name
Use: [1]
|
|
|
|
Print each number from 1 to 45
Use: loops[2]
|
|
|
|
Assume you have a list of numbers A. Create a new variable that is equal to sum of all the numbers in A.
Use: variables, loops[2]
|
|
|
Test Using: A = [] A = [1,1] A = [49,14,40] |
|