Blog

What is the output of the following code if the code is run from a single file?

class example:
def __init__(self, a, b):
self.a = a
self.b = b
def greeting(self):
print(__name__)
object = example(1, 2)
object.greeting()