class A:
class_property = 10
def __init__(self):
self.object_property = 20
The difference is that you can access the property class through class A:
print A.class_property
but you can only access object_property through instance A:
a = A()
print a.object_property
source
share