Lab Description:
This is an example of how to construct a code to find the area of a circle with a radius of 3.
Code:
import math
strRad = input (“Please input the radius of your circle => “) fltRad = float (strRad) ##print(type(strRad)
area = math.pi * fltRad ** 2 ##print(area)
print(“The area of the circle with radius “, fltRad, “is: “, area)
Radius = 3
Screenshot: