class MathUtils: PI = 3.14159 @classmethod def circle_area(cls, radius): return cls.PI * radius**2 @classmethod def circle_circumference(cls, radius): return 2 * cls.PI * radius
print(MathUtils.circle_area(5)) # Output: 78.53975 print(MathUtils.circle_circumference(5)) # Output: 31.4159 math_obj = MathUtils() print(math_obj.circle_area(3)) # Output: 28.27431 print(math_obj.circle_circumference(3)) # Output: 18.84954
78.53975 31.4159 28.27431 18.849539999999998