preveen-stack / nodejs

0 stars 0 forks source link

python module docstring example #23

Open preveen-stack opened 1 month ago

preveen-stack commented 1 month ago
"""
This script calculates the area of a rectangle.

Usage:
    python rectangle_area.py <length> <width>

Arguments:
    length (float): The length of the rectangle.
    width (float): The width of the rectangle.

Returns:
    float: The area of the rectangle.

Example:
    $ python rectangle_area.py 5 10
    The area of the rectangle is: 50.0
"""