def area_reg_polygon(sides: int, length: float) -> float:
    if not isinstance(sides, int) or sides < 3:
        raise ValueError(
            "area_reg_polygon() only accepts integers greater than or \