Question: Currently, this should draw three triangles to the screen, and then close the turtle window immediately. We d like to have the turtle window remain
Currently, this should draw three triangles to the screen, and then close the turtle window immediately. Wed like to have the turtle window remain up until we click on it to ensure that we have time to see the resulting picture. We can use the exitonclick turtle function to solve this.
Add the following line to the end of your Python file:
turtle.exitonclick #This should always be the last line of the file
Wed like to change the code to produce the figure on the right, where the largest triangle is drawn to the left of the others.
Add the following line of code to your Python file somewhere, that causes it to produce the figure shown to the right.:
turtle.left
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
