'The line segments that form the sides of the polygon.
Returns
sides : list of sides
Each side is a Segment.
Notes
The Segments that represent the sides are an undirected
line segment so cannot be used to tell the orientation of
the polygon.
See Also
sympy.geometry.point.Point, sympy.geometry.line.Segment
Examples
>>> from sympy import Point, Polygon
>>> p1, p2, p3, p4 = map(Point, [(0, 0), (1, 0), (5, 1), (0, 1)])
>>> poly = Polygon(p1, p2, p3, p4)
>>> poly.sides
[Segment2D(Point2D(0, 0), Point2D(1, 0)),
Segment2D(Point2D(1, 0), Point2D(5, 1)),
Segment2D(Point2D(0, 1), Point2D(5, 1)), Segment2D(Point2D(0, 0), Point2D(0, 1))]'

@property
def sides(self):

    res = []
    args = self.vertices
    for i in range((- len(args)), 0):
        res.append(Segment(args[i], args[(i + 1)]))
    return res
