- numpy - matplotlib Physim

Basic Shape Area Calculator

In this section you will practice and apply what you have learned from the Area simulations, creating an area calculator program which calculates the area of any of the basic shapes based on user choice and understanding the calculations being done.


If you are looking for a reference for Python consider looking at the Python Reference Sheet on the site.



Below are sample runs of some of the outputs you should get when running the program.


Basic Shape Area Calculator:


For user input 1, the output should be:


For user input 2, the output should be:


For user input 3, the output should be:


For user input 4, the output should be:


For user input 5, the output should be:



Here is a code editor so that you can compute your converter program.


# insert your code here


Go Back to Area and Volume Exercises Page