2.1.1 Docstrings - JulTob/Python GitHub Wiki

Pieces of programs must be documented. To the explication and documentation integrated into the .py documents we call Docstrings.

def Circn_Circulo(r):
   """Return the circumference of a circle of radius of r.

   Arguments:
     r - Radius of circle

   Returns:
     float: circumference of a circle
   """

   c = 2 * r * math.pi
   return c