Answered step by step
Verified Expert Solution
Question
1 Approved Answer
to produce a simple graphical representation of a set of triangles, as shown in Figure 1. The output should consist of 4 triangles with sides
- to produce a simple graphical representation of a set of triangles, as shown in Figure 1. The output should consist of 4 triangles with sides of length 20, 40, 60 and 80 respectively, placed diagonally as shown. The distance between adjacent triangles should be the same: there should be 10 units (measured as a straight line) between the top point of the lower triangle and the lower left point of the higher triangle.
- that, in principle, can produce larger numbers of triangles simply by changing one number that specifies the number of triangles
- with the turtle starting at the position that we want to be the bottom left hand corner of the left most triangle and the turtle pointing to the right.
Translate into Python, including appropriate comments, and run your program to ensure the output matches Figure 1. You do not need to submit an output.
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