(self)
return res
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
        [Segment(Point(0, 0), Point(1, 0)),
        Segment(Point(1, 0), Point(5, 1)),
        Segment(Point(0, 1), Point(5, 1)), Segment(Point(0, 0), Point(0, 1))]
The line segments that form the sides of the polygon.
The line segments that form the sides of the polygon .
def sides(self):
        """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
        [Segment(Point(0, 0), Point(1, 0)),
        Segment(Point(1, 0), Point(5, 1)),
        Segment(Point(0, 1), Point(5, 1)), Segment(Point(0, 0), Point(0, 1))]

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