0

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'
Deepak Kumar
  • 109
  • 1
  • 1
  • 12

0 Answers0