Code Writer
Level 2, 2025-07-08
Answers should be legal Python code, including indentation. Use the underscore _ to show a space.
Special functions: print(), range(), sqrt(), str()
Create two strings and join them together with a space between

Use: variables[1]
Do the sum 64 + 30 and print the result

Use: [1]
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 = [67,58,45]
A triangle has sides of 7, 9 and 7. Create variables for the sides of the triangle and then calculate its perimeter.

Use: variables[2]
A rectangle has sides of 6 and 3. Create variables for the sides of the shape and then calculate its perimeter

Use: variables[2]
Set two variables to different values then add them together

Use: variables[1]
Use a loop to create a string that has 11 "G" characters

Use: variables, loops[2]
Assume you have a variable S that is the length of the side of a square. Calculate another variable that is equal to the perimeter of the square.

Use: variables[2]

Test Using:
S = 49
A triangle has sides of 3, 2 and 5. Create variables for the sides of the triangle and then calculate its perimeter.

Use: variables[2]