Design Pattern: Composite Pattern in Python
In composite pattern we use the same interface for the same object and composition of objects. This way we can treat and use the individual item object and item list/composition of object exactly the same way. In this article, we discuss the implementation of the Composite Pattern in Python.