Question: Write the Python code to create a class named Circle, which is constructed by a radius having value 5 and two other methods, which

Write the Python code to create a class named Circle, which is constructed by a radius having value 5 and two other methods, which will calculate the circumference and area of a circle. The formula to get the circumference of the circle: C = 2rtr The formula to get the area of the circle: A = nr Output: Area: 78.53981633974483 and circumference: 31.41592653589793
Step by Step Solution
3.28 Rating (174 Votes )
There are 3 Steps involved in it
import math class Circle definitself radius selfradius ra... View full answer
Get step-by-step solutions from verified subject matter experts
