CIS 41A Unit I, Exercise I

Write a single script

At the top of your script, put the following multi-line comment with your information:

'''
Your name as registered, with optional nickname in parentheses
CIS 41A   Fall 2021
Unit I, Exercise I
'''

All print output should include descriptions as shown in the example output below.

Part 1 of 1 - Basic Inheritance - Circle & Cylinder

You will be creating a Circle base (parent) class and a Cylinder class that inherits from it (child).
Both classes and the code to test the classes will be contained within a single script.

The Circle class has the following methods: __init__, getArea.
Circle's __init__ method should have the parameters self and radius, and should store the radius as an attribute.
The getArea method has the parameter self and should return the circle's area (use the pi constant from the math module when calculating the area).

The Cylinder class inherits from the Circle class and has the following methods: __init__, getVolume.
Cylinder's __init__ method should have the parameters self, radius and height. From within Cylinder's __init__, call Circle's __init__ to store the radius. The height should be stored as an attribute of the Cylinder.
The getVolume method has the parameter self and should use the getArea method and calculate and return the cylinder's volume. See: volume of a cylinder

Test by creating an instance of the Circle class with a radius of 4. Print the area of the circle, rounded to 2 places.
Then, create an instance of the Cylinder class with a radius of 2 and a height of 5. Print the volume of the cylinder, rounded to 2 places.

Sample Execution Results:

Circle area is: 50.27
Cylinder volume is: 62.83

Add the following at the end of the script to show your results:

'''
Execution results:
paste execution results here
'''

Submit your finished py script in Canvas, Exercise I.