Design Pattern: Factory Pattern in Python
Factory design pattern is used, so that a client(the client code) can provide some criteria and and ask for an object. And the factory will generate the object based on the provided criteria and return that. In this article, we discuss the implementation of the Factory Pattern in Python.