use IDLE in linux/windows for the program development.Open a file and type the program .Save the file with extension '.py' eg: test.py. From the run menu click run module (F5) to run the program.If you are running the program from command prompt type $python test.py

*******************************************************************************#**Python Program to find Area and Circumference of a Circle

#Standard formula to calculate the Area of a circle is: a=π r². Circumference c=2 π r.

r=input(“Enter radius”)

a=3.14159 * r * r

c=2* 3.14159 * r

print “Area of the circle”,a

print “Circumference of the circle”,c

print “Circumference of the circle”,c

*************************************************************************************************

Now you can try the following simple programs.

1) area of the circle given the diameter.

2)area of the circle given the circumference.(circumference=2*pi*r)

3)area of the circle given center point (x1,y1) and one point on the perimeter (x2,y2).

(Hint: input the two points and compute the distance between them as radius)

3)area of the circle given center point (x1,y1) and one point on the perimeter (x2,y2).

(Hint: input the two points and compute the distance between them as radius)

4)area of a triangle given three sides a,b,c.(use Heron's formula)

5)area and perimeter of a right angled triangle given width(w) and height(h).

(area=1/2.0*w*h .use Pythagoras theorem to find the hypotenuse then add the three sides to find the perimeter)

(area=1/2.0*w*h .use Pythagoras theorem to find the hypotenuse then add the three sides to find the perimeter)

6)volume and surface area of a sphere given the
radius.

(volume=4/3.0*pi*r*r*r surface area=4*pi*r*r)

(volume=4/3.0*pi*r*r*r surface area=4*pi*r*r)

7)area of an equilateral triangle given one side (s).( sqrt(3)/4.0*s*s)

8) volume and surface area of the cylinder given
radius(r) and height(h).

(volume=pi*r*r*h surfacearea=2*pi*r*r+2*pi*r*h)

(volume=pi*r*r*h surfacearea=2*pi*r*r+2*pi*r*h)

9) volume and surface area of a cube given one side
( s).

(volume=s*s*s surface area=6*s*s)

10)hypotenuse of a right-angled triangle, given the length of the other two sides.( university question) ( use Pythagoras theorem)

(volume=s*s*s surface area=6*s*s)

10)hypotenuse of a right-angled triangle, given the length of the other two sides.( university question) ( use Pythagoras theorem)