Question: Can someone please help me code this in python? By default, you will be facing to the right, ensure to turn left by 120 Then,

Can someone please help me code this in python?

Can someone please help me code this in python? By default, you

By default, you will be facing to the right, ensure to turn left by 120 Then, set the background to black and pen colour to magenta as well as the pen width to 2

To draw a single pentagon:

Loop SIX times (yes, six times, not five) to position the turtle at different corner each time

The very first pentagon will have a size of 10 + 2 units (*size" is the length of each side of the pentagon)

The second pentagon will have a size of 10 + 6 units The third pentagon will have a size of 10 + 10 units The fourth pentagon will have a size of 10 + 14 units, and so on...

The rotation angle will be the same as drawing an ordinary pentagon

After each iteration of drawing a pentagon, turn to the right by 1 degree

All in all, there will be 85 pentagons drawn

using i and j as the outer and inner variable names for the loops, respectively

Assignment 1 - Jonny Smith - js 222

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!