Python - Classes and Object Lifecycle
Consider this class:
What is the output and why?
class Circle:
pi = 3.14
def __init__(self, radius):
self.radius = radius
def circumference(self):
return 2 * Circle.pi * self.radius
c = Circle(5)
print(c.circumference())What is the output and why?
