What is a FACTORY and how to create one in Python?

What is a FACTORY and how to create one in Python?

This video shows why and when to use a factory and how to create one in Python. It is the first step in a 3-part video series about Factories. C H A P T E R S 0:27 Common problems with creating objects at runtime 1:00 Single responsibility violation 1:10 Open-closed principle violation caused by switch 1:44 Extract if/else code to factory 2:40 A factory is an object that takes responsibility for creating other objects 2:48 Common mistake when making factories 3:36 Problems caused by static factories M Y O N L I N E T R A I N I N G 🎓Like my style of teaching? Try free chapters of my online courses: https://pythonforeveryone.com #pythonforeveryone #programming #python