Write a python function to find the area of a circle using the user provided radius


Topic: Write a python function to find the area of a circle using the user provided radius

Solution

def area_of_circle(radius):
  PI = 3.14
  radius = float(radius)
  area = PI * radius * radius
  circumference = 2 * PI * radius
  print(f'Area Of a Circle {area}')
  print(f'Circumference Of a Circle {circumference}')



List all Python Programs