When I run this code:
class C(object):
print("Hello from inside class C")
It gives the same result as if I had used this code:
print("Hello from inside class C")
However when I use:
class B(object):
def __init__(self):
print("Hello from inside class B")
The class behaves like I had expected. Does anyone have an explanation?