Why is the print statement in class getting executing even though i have not created any object of class -'Test'
class Test(object):
print 'hi'
if __name__ == '__main__':
print 'in main'
Why is the print statement in class getting executing even though i have not created any object of class -'Test'
class Test(object):
print 'hi'
if __name__ == '__main__':
print 'in main'