write a python program which accepts the radius of a circle from the user and compute the area code example
Example: write a python program which accepts the radius of a circle from the user and compute the area
import math
def calc_circle_area (radius):
return math.pi*radius*radius
MAGIC_RADIUS = 0.5641895835477563
print (calc_circle_area(MAGIC_RADIUS))