Answer to Question #84904 in Python for Python turtle

Question #84904
How do I create this shape: a hexagon with a pentagon in it with a square in it with a triangle in it
1
Expert's answer
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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS