In geometry, an octagon is an eight-sided polygon. Each internal angle is 135 degrees. Based on what you have learned in this course and using the appropriate commands, you are asked to implement a python program that draws the below diagram using the turtle. You should consider the following points in your solution: 1. Each octagon side has a length of 40 units. 2. Each octagon has a different color. 3. The border lines should be thick enough. 4. The final shape of the output should be as shown above. 5. You might place the desired colors in a list to access them by index in the drawing loop. 6. Make sure to set properly the starting position (x & y) of your drawing, to maintain the above diagram. - Tip: You can use the below colors and fills colors=['red', 'blue', 'brown', 'green', 'orange', 'purple', 'cyan', 'yellow'] fill= ['yellow', 'grey', 'orange', 'pink', 'black', 'cyan', 'purple', 'red']
In geometry, an octagon is an eight-sided polygon. Each internal angle is 135 degrees. Based on what you have learned in this course and using the appropriate commands, you are asked to implement a python program that draws the below diagram using the turtle. You should consider the following points in your solution: 1. Each octagon side has a length of 40 units. 2. Each octagon has a different color. 3. The border lines should be thick enough. 4. The final shape of the output should be as shown above. 5. You might place the desired colors in a list to access them by index in the drawing loop. 6. Make sure to set properly the starting position (x & y) of your drawing, to maintain the above diagram. - Tip: You can use the below colors and fills colors=['red', 'blue', 'brown', 'green', 'orange', 'purple', 'cyan', 'yellow'] fill= ['yellow', 'grey', 'orange', 'pink', 'black', 'cyan', 'purple', 'red']
Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter2: Elements Of High-quality Programs
Section: Chapter Questions
Problem 1GZ
Related questions
Question
Hello, please i need a help to solve this question in the image.
Thank you.
![](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fd2588ffb-ec10-48ef-a597-851fc1d7617e%2F90116578-ca49-4a94-be5e-f440bafb23f6%2Fxxtqjdm_processed.png&w=3840&q=75)
![In geometry, an octagon is an eight-sided polygon. Each internal angle is 135 degrees.
Based on what you have learned in this course and using the appropriate commands, you
are asked to implement a python program that draws the below diagram using the turtle.
You should consider the following points in your solution:
1. Each octagon side has a length of 40 units.
2. Each octagon has a different color.
3. The border lines should be thick enough.
4. The final shape of the output should be as shown above.
5. You might place the desired colors in a list to access them by index in the drawing
loop.
6. Make sure to set properly the starting position (x & y) of your drawing, to maintain the
above diagram.
Tip: You can use the below colors and fills
colors=['red', 'blue', 'brown', 'green', 'orange', 'purple', 'cyan', 'yellow']
fill= ['yellow', 'grey', 'orange', 'pink', 'black', 'cyan', 'purple', 'red']](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fd2588ffb-ec10-48ef-a597-851fc1d7617e%2F90116578-ca49-4a94-be5e-f440bafb23f6%2F7ck8m0l_processed.png&w=3840&q=75)
Transcribed Image Text:In geometry, an octagon is an eight-sided polygon. Each internal angle is 135 degrees.
Based on what you have learned in this course and using the appropriate commands, you
are asked to implement a python program that draws the below diagram using the turtle.
You should consider the following points in your solution:
1. Each octagon side has a length of 40 units.
2. Each octagon has a different color.
3. The border lines should be thick enough.
4. The final shape of the output should be as shown above.
5. You might place the desired colors in a list to access them by index in the drawing
loop.
6. Make sure to set properly the starting position (x & y) of your drawing, to maintain the
above diagram.
Tip: You can use the below colors and fills
colors=['red', 'blue', 'brown', 'green', 'orange', 'purple', 'cyan', 'yellow']
fill= ['yellow', 'grey', 'orange', 'pink', 'black', 'cyan', 'purple', 'red']
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
![C++ Programming: From Problem Analysis to Program…](https://www.bartleby.com/isbn_cover_images/9781337102087/9781337102087_smallCoverImage.gif)
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
![C++ for Engineers and Scientists](https://www.bartleby.com/isbn_cover_images/9781133187844/9781133187844_smallCoverImage.gif)
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
![C++ Programming: From Problem Analysis to Program…](https://www.bartleby.com/isbn_cover_images/9781337102087/9781337102087_smallCoverImage.gif)
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
![C++ for Engineers and Scientists](https://www.bartleby.com/isbn_cover_images/9781133187844/9781133187844_smallCoverImage.gif)
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781305480537/9781305480537_smallCoverImage.jpg)
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
![Systems Architecture](https://www.bartleby.com/isbn_cover_images/9781305080195/9781305080195_smallCoverImage.gif)
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning