import turtle as t
t.shape("turtle")
t.color("red")
t.pensize(width=5)
t.begin_fill()
sideLength = 50
angle = 72
for i in range(0, 5):
t.forward(sideLength)
t.right(angle)
t.end_fill()
t.exitonclick()
import turtle as t: This means t will mean turtle from now.
t.shape("turtle"): This means that the turtle shape will be set to turtle.
t.color("red"): The colors turtle will be red.
t.pensize(width=5): This shows the pen thickness.
t.begin_fill(): This will fill the pentagon.
sideLength = 50: Each side length will be 50 .
angle = 72: Each angle will be 72.
for i in range(0, 5): This means in the range of 5, the pentagon will be drawn.
t.forward(sideLength): This chooses the side leghth of the shape.
t.right(angle): This makes the turltle turn right 72 degrees.
t.end_fill(): This command will end the drawing and fill the pentagon.
t.exitonclick(): This will make it so that if i click then the code will end.
Finally, what shape you draw?
A pentagon