import turtle
def draw_pentagon(size):
for _ in range(5):
turtle.forward(size)
turtle.right(72)
for i in range(3):
draw_pentagon(100)
turtle.penup()
turtle.forward(200)
turtle.pendown()
turtle.exitonclick()
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
import turtle
def draw_pentagon(size):
for _ in range(5):
turtle.forward(size)
turtle.right(72)
for i in range(3):
draw_pentagon(100)
turtle.penup()
turtle.forward(200)
turtle.pendown()
turtle.exitonclick()