Skip to content

Commit

Permalink
Clarifying docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
AllenDowney committed Feb 26, 2020
1 parent 0564b60 commit 878bf99
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions code/pie.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def draw_pie(t, n, r):
t.fd(r*2 + 10)
t.pd()


def polypie(t, n, r):
"""Draws a pie divided into radial segments.
Expand All @@ -48,7 +48,7 @@ def isosceles(t, r, angle):
t: Turtle
r: length of the equal legs
angle: peak angle in degrees
angle: half peak angle in degrees
"""
y = r * math.sin(angle * math.pi / 180)

Expand Down Expand Up @@ -76,4 +76,3 @@ def isosceles(t, r, angle):

bob.hideturtle()
turtle.mainloop()

0 comments on commit 878bf99

Please sign in to comment.