0 out of 464 challenges solved
Write a Python function `perimeter_pentagon` that calculates the perimeter of a regular pentagon given the length of one of its sides.
The perimeter of a regular pentagon is calculated as:
\[ \text{Perimeter} = 5 \times \text{side length} \]
#### Function Signature
```python [main.nopy]
def perimeter_pentagon(side_length: float) -> float:
pass
```
#### Example Usage
```python [main.nopy]
print(perimeter_pentagon(5)) # Output: 25
print(perimeter_pentagon(10)) # Output: 50
print(perimeter_pentagon(15)) # Output: 75
```
#### Constraints
- The input `side_length` will be a positive float or integer.
- The function should return the perimeter as a float.def perimeter_pentagon(side_length: float) -> float:
"""
Calculate the perimeter of a regular pentagon given the side length.
Args:
side_length (float): The length of one side of the pentagon.
Returns:
float: The perimeter of the pentagon.
"""
# Placeholder for the solution
pass