---
# System prepended metadata

title: Class Attribtes Example

---

# Class Attribtes Example

```python
class Clazz:
    version=10
    def __init__(self):
        pass

clazz_1 = Clazz()
clazz_2 = Clazz()
print("Clazz.version: {}".format(Clazz.version))
print("clazz_1.version: {}".format(clazz_1.version))
print("clazz_2.version: {}".format(clazz_2.version))
print("clazz_1.__dict__.keys()", clazz_1.__dict__.keys())

print('========== Clazz.version=11')

Clazz.version = 11
print("Clazz.version: {}".format(Clazz.version))
print("clazz_1.version: {}".format(clazz_1.version))
print("clazz_2.version: {}".format(clazz_2.version))
print("clazz_1.__dict__.keys()", clazz_1.__dict__.keys())

print('========== clazz_1.version=12')

clazz_1.version = 12
print("Clazz.version: {}".format(Clazz.version))
print("clazz_1.version: {}".format(clazz_1.version))
print("clazz_2.version: {}".format(clazz_2.version))
print("clazz_1.__dict__.keys()", clazz_1.__dict__.keys())


print('========== Clazz.version=13')

Clazz.version = 13
print("Clazz.version: {}".format(Clazz.version))
print("clazz_1.version: {}".format(clazz_1.version))
print("clazz_2.version: {}".format(clazz_2.version))
print("clazz_1.__dict__.keys()", clazz_1.__dict__.keys())

```

```bash=

Clazz.version: 10
clazz_1.version: 10
clazz_2.version: 10
clazz_1.__dict__.keys() dict_keys([])
========== Clazz.version=11
Clazz.version: 11
clazz_1.version: 11
clazz_2.version: 11
clazz_1.__dict__.keys() dict_keys([])
========== clazz_1.version=12
Clazz.version: 11
clazz_1.version: 12
clazz_2.version: 11 
clazz_1.__dict__.keys() dict_keys(['version']) 
========== Clazz.version=13
Clazz.version: 13
clazz_1.version: 12
clazz_2.version: 13
clazz_1.__dict__.keys() dict_keys(['version']) 
```