1.

What is the output of the following code? class Demo: def __init__(self): pass def test(self): print(__name__) obj = Demo() obj.test()

A. Exception is thrown
B. __main__
C. Demo
D. test
Answer» C. Demo


Discussion

No Comment Found