Mr. Kao's Lesson
star
star
star
star
star
Last updated almost 6 years ago
12 questions
1
Choose all that apply: Is Python a(n)
Choose all that apply: Is Python a(n)
1
What are examples of Python functions or syntax that can produce the illustration in the video below?
What are examples of Python functions or syntax that can produce the illustration in the video below?
1
If you selected "other" above, what other code would you use?
If you selected "other" above, what other code would you use?
1
Run the code below using the "play" button. What does the line: "turtle.right(90)" do to make the graphics drawing program draw a square?
Run the code below using the "play" button. What does the line: "turtle.right(90)" do to make the graphics drawing program draw a square?
1
If the turtle.right() orients the turtle object by rotating it some number of degrees, then modify the code above to make the program draw a triangle. What number of degrees do you need to specify for the turtle.right() function? (hint: it has to do with the measure of the external angle of a triangle)
If the turtle.right() orients the turtle object by rotating it some number of degrees, then modify the code above to make the program draw a triangle. What number of degrees do you need to specify for the turtle.right() function? (hint: it has to do with the measure of the external angle of a triangle)
1
Modify the code again to draw a pentagon and a hexagon and paste the code for both in the space below. Refer to the table above if you need help.
Modify the code again to draw a pentagon and a hexagon and paste the code for both in the space below. Refer to the table above if you need help.
1
Answer both questions in the space below:How do you work out the angle if you know the number of sides?
Complete the equation below (which should calculate angle in terms of sides):angle = ______ รท sides
Answer both questions in the space below:
How do you work out the angle if you know the number of sides?
Complete the equation below (which should calculate angle in terms of sides):
angle = ______ รท sides
1
What is the best choice for pseudocode for lines 2 - 4 in the code above?
What is the best choice for pseudocode for lines 2 - 4 in the code above?
1
If you can only modify the constant integers in lines 2 - 4 marked in the loop above, which is NOT possible?
If you can only modify the constant integers in lines 2 - 4 marked in the loop above, which is NOT possible?
1
What is the best pseudocode to use in line 9 above?
What is the best pseudocode to use in line 9 above?
1
Finish writing the pseudocode for lines 8 to 10 in the code above.
Finish writing the pseudocode for lines 8 to 10 in the code above.
1
Modify the code above to create the shape shown. This can be done with only a few lines of code.
Modify the code above to create the shape shown. This can be done with only a few lines of code.

