Question: Filename: assign 5 - 1 . py Create a class named Circle. Within this class, set a variable named radius to 0 and define three
Filename: assignpy
Create a class named Circle. Within this class, set a variable named radius to and define three methods:
init: The init method will take self and radius as parameters, and initiate the attributes.
area: The area method will only take self as a parameter, calculate the area, round it to one decimal point, and return the area.
perimeter: The peri method will only take self as a parameter, calculate the perimeter of the circle, round it to one decimal place, and return it
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
