Python Program

Object:- Python Program to calculates the area of a circle

#!/usr/bin/env python3
# -*- coding: utf-8 -*-

from math import *
d = 10.0 # diameter
A = pi * d**2 / 4
print("diameter =", d)
print("area = ", A)

Output

diameter = 10.0
area =  78.53981633974483

Explanation

This small program calculates the area of a circle