#!/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)
diameter = 10.0 area = 78.53981633974483
This small program calculates the area of a circle