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)
print(c1.diameter)
c1.area()
c1.circumference()
c1.pi