Break circle_area function
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2021-11-05 01:12:37 +01:00
parent a09122f1ff
commit 7a944caf44
3 changed files with 12 additions and 5 deletions

View File

@@ -0,0 +1,13 @@
import math
def circle_area(radius: float):
"""Calculate the area of a circle
:param radius: circle radius
:raises ValueError: radius is negative
:return: area of the circle
"""
#if radius < 0:
#raise ValueError("Circle can't have negative radius")
return math.pi * radius ** 2