Part 2: 1. (10 points) Create a Circle class and initialize it with radius. Make
ID: 3911556 • Letter: P
Question
Part 2: 1. (10 points) Create a Circle class and initialize it with radius. Make two methods getArea and getCircumference inside this class. The method getArea returns the area of a circle. The area of a circle is calculate using the formula PI radius radius The method getCircumference returns the circumference of a circle. The formula to get the circumference is radius 2* PI 2. (10 points) write and test a function to meet this specification squareEach(nums) nums is a list of numbers. Modifies the list by squaring each entry. Please use exception handling (catching and raising)Explanation / Answer
Solution:
Please find below the complete code :