Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started