DS171222B Area of circle having radius r

class Circle():
def init(self, r):
self.radius = r

def area(self):
    return self.radius**2*3.14

def perimeter(self):
    return 2*self.radius*3.14

NewCircle = Circle(8)
print(NewCircle.area())
print(NewCircle.perimeter())

1 Like

Good @prabhudevaraj11 .
Keep practicing