Question: Write a Python class named Circle constructed by a radius. The class should implement two methods, which will compute the area and the perimeter of
Write a Python class named Circle constructed by a radius. The class should implement two methods, which will compute the area and the perimeter of the circle. The methods should be named area and perimeter and both should return a numerical value. For example, to create a circle instance you should define small circle = Circle(2) and to get the area of the circle, you should call small circle.area(), which should return 12.566.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
