Python Exercise ( Part I )

1.) Write a Python program which accepts the radius of a circle from the user and compute the area.

Input Data :

Radius = 7

Expected Output :

Area of the circle : 153.93804002589985

2.) Write a Python program which accepts Width and Height of a Rectangle from the user and compute the area and perimeter.

Input Data :

Width = 10.5 Height = 7.5

Expected Output :

Area is 10.5 x 7.5 = 78.75

Perimeter is 2 x( 10.5 + 7.5 ) = 36.0

Leave a comment