Title: Drawing Regular Polygons Part 1

Topic: Geometry

Difficulty:

Required Skills: Angle Sums of Polygons, Properties of Regular Polygons, Exterior Angles

Language: Python

This activity will help students to apply their understanding regular polygons, angles sums of regular polygons and exterior angles. They will work to draw a variety of regular polygons using Python’s Turtle library.

from turtle import *

speed(
10)
hideturtle
()
pensize(
5)

#draw orange triangle
color(
"orange")
begin_fill
()
for x
in range(3):

  forward(100)
 left(
120)
end_fill
()

penup
()
goto(
-150,0)
pendown
()

#draw blue square
color(
"royalblue")
begin_fill
()
for x
in range(4):
 forward(
100)
 left(
90)
end_fill
()
 
penup
()
goto(
-150,-150)
pendown
()

#draw green pentagon
color(
"forestgreen")
begin_fill
()
for x
in range(5):
 forward(
80)
 left(
72)
end_fill
()

penup
()
goto(
0,-150)
pendown
()

#draw red hexagon
color(
"tomato")
begin_fill
()
for x
in range(6):
 forward(
70)
 left(
60)
end_fill
()