def rect_area(r):
    """Return the area of a rectangle.

    Args:
        r: an object with attributes left, top, width, height
    Returns:
        float
    """
    return float(r.width) * float(r.height)