Solid Principles, Python.
this principle, the changes do not explode into all directions. This is a selection that switches on object types. The reason to use the open-closed principle is easy. It prevents switches like this. Selecting on types: First, We will see how a selection on types violates the open closed principle