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 Circunferencia_Circulo(radio):
   """Return the circumference of a circle of radius of r.
   (Arguments):
     radio: Radius of circle
   ⟨Returns⟩:
     float: circumference of a circle
   """
   circunferencia = 2 * radio * math.pi
   return circunferencia