Projects/tests/area.py

11 lines
222 B
Python

PI = 3.14159
def area_of_circle(radius: float) -> float:
"""
Function to calculate area of a circle
:param radius: Radius of the circle
:return: Area of the circle
"""
return PI * radius * radius