A simple group of pentagons made a bit different by the red slip or accent on each shape.
Feel free to copy the basic Python Turtle code that is given below. Don't hesitate to ask questions about the code if you have any. Enjoy! Please comment, like, or subscribe :)
Incidentally, for more graphics and variations, please visit my author url at https://www.amazon.com/author/basicpy...
import turtle
t = turtle.Turtle() #Definitions and Initializations
screen = turtle.Screen()
t.pensize(4)
pentagon_size = 140 #Changeable; Length of one side of regular pentagon
number_of_pentagons = 8 #Changeable
def pentagon(): #Procedure for drawing a pentagon with red accent
t.forward(pentagon_size) #Drawing of first side
t.left(72) #Turtle direction for drawing of second side
t.forward(0.6 * pentagon_size) #Drawing of a portion of second side
t.fillcolor("red") #Start of color fill procedure for red accent
t.begin_fill()
t.forward(0.4 * pentagon_size) #Drawing of continuation of second side
t.left(72)
t.forward(pentagon_size) #Drawing of third side
t.end_fill() #End of color fill procedure for red accent
for i in range(3): #Loop to draw the third, fourth, and fifth sides
t.left(72)
t.forward(pentagon_size)
t.penup() #Pyhton_Graphic start of drawing procedure
for i in range(number_of_pentagons): #Loop to draw the indicated number of pentagons
t.forward(pentagon_size / 3) #Trail-less movement of turtle from center of graphic to a pentagon
t.pendown() #Drawing preparation
pentagon() #Function call to draw a pentagon with a red accent
t.penup()
t.home() #Trail-less movement of turtle to center of graphic (0, 0)
t.left((1 + i) * 360 / number_of_pentagons) #Turtle direction for drawing of next pentagon
t.hideturtle()
screen.exitonclick()