2. Filename: assign4-6.py
Write a program and create the following functions:
shapes (): takes the shape name and a number as parameters, and calls the proper function to calculate the area. areaCircle(): take one number as a parameter, calculates the area of the circle, and print the result. Round the output to 2
decimal places.
areaSquare (): takes one number as a parameter, calculates the area of the circle, and prints the result. Round the output to 2
decimal places.
You can assume the shape names will be circle or square (nothing else). The program output is shown below.
Input:
a) python C:\Users\neda\DataProgramming\M\assign4-6.py circle 10
b) python C:\Users\neda\DataProgramming\M4\asaign4-6.py square 51
Output:
a) The circle area is 314.16
b) The square are in 25-