Answer to Question #84904 in Python for Python turtle
How do I create this shape: a hexagon with a pentagon in it with a square in it with a triangle in it
1
2019-02-07T05:31:42-0500
from turtle import *
setup()
x = 0
y = 0
def figure(n):
goto(x, y)
for z in range(n):
fd(200)
rt(360/n)
figure(6)
figure(5)
figure(4)
figure(3)
exitonclick()
Need a fast expert's response?
Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Learn more about our help with Assignments:
Python
Comments
Leave a comment