Creating your Own class
Calculate area and perimeter of circle with class In this task you will be creating your own class for a circle and define two methods to compute its perimeter and area. Name the class Circleand initialize it using __init__()which takes in argument radiusalong with self and initializes its radius self.radius = radius. Define another two methods area()and perimeter()which takes only the keyword self as argument and calculates the area(3.14xradius^2) and perimeter (2*3.14xradius) respectively. Finally, instantiate an object for Circle of radius 3and save it as circle Calculate the area of circleusing its .area()method and save it as circle_area Calculate the perimeter of circleusing its .perimeter()method and save it as circle_perimeter Print out circle_areaand circle_perimeter https://code.sololearn.com/c62PbpZ7woqZ/?ref=app