Area Library
area.py
This module provides functions to calculate the area of different shapes.
- lib.area.square(side)[source]
Returns the area of a square.
- Parameters:
side (float) – The side of the square.
- Returns:
The area of the square.
- Return type:
float
- lib.area.rectangle(length, width)[source]
Returns the area of a rectangle.
- Parameters:
length (float) – The length of the rectangle.
width (float) – The width of the rectangle.
- Returns:
The area of the rectangle.
- Return type:
float
- lib.area.circle(radius)[source]
Returns the area of a circle.
- Parameters:
radius (float) – The radius of the circle.
- Returns:
The area of the circle.
- Return type:
float