I have used python 3.7 compiler for debugging purpose.
from math import pi
radius = float(input ("Input the radius of the circle : "))
print ("The area of the circle with radius " + str(radius) + " is: " + str(pi * radius**2))
Result:
Input the radius of the circle : 5
The area of the circle with radius 5.0 is : 78.53981633974483
I have used python 3.7 compiler for debugging purpose.
Result:
Input the radius of the circle : 5
The area of the circle with radius 5.0 is : 78.53981633974483
need an explanation for this answer? contact us directly to get an explanation for this answer