Object Oriented

class circle():

    pi = 3.14

    def __init__(self,radius):
        self.radius = radius
        self.diameter = 2 * radius

    def area(self):
        area_circle = self.pi * self.radius ** 2
        print(area_circle)

    def circumference(self):
        circumference_circle = 2* self.pi * self.radius
        print(circumference_circle)
c1 = circle(5)
print(c1.radius)
5
print(c1.diameter)
10
c1.area()
78.5
c1.circumference()
31.400000000000002
c1.pi
3.14