(self)
return (self._angleOffset + self._angleOrient*result) % self._fullcircle
Return the turtle's current heading.

        No arguments.

        Example (for a Turtle instance named turtle):
        >>> turtle.left(67)
        >>> turtle.heading()
        67.0
Return the turtle's current heading.
Return the turtle s current heading .
def heading(self):
        """ Return the turtle's current heading.

        No arguments.

        Example (for a Turtle instance named turtle):
        >>> turtle.left(67)
        >>> turtle.heading()
        67.0
        """
        x, y = self._orient
        result = round(math.degrees(math.atan2(y, x)), 10) % 360.0
        result /= self._degreesPerAU
        return (self._angleOffset + self._angleOrient*result) % self._fullcircle
def heading ( self ) : x , y = self . _orient result = round ( math . degrees ( math . atan2 ( y , x ) ) , 10 ) % 360.0 result /= self . _degreesPerAU return ( self . _angleOffset + self . _angleOrient * result ) % self . _fullcircle