diff --git a/circle_area.py b/circle_area.py index 2f65776..585b61d 100755 --- a/circle_area.py +++ b/circle_area.py @@ -1,3 +1,8 @@ # TODO: DEFINE a function using the def keyword called `area_of_circle` +import math + +def area_of_circle(radius): + area = (radius ** 2) * math.pi # TODO: implement the function to RETURN (NOT PRINT) the area of a circle whose radius is r + return area # HINT: You'll need to import math to solve this problem correctly.