Dependency Injection: Python
How do you make your code flexible? Well, there are many ways to do that, and one of them is by moving one or more of its functionalities outside of it. This makes your code behave dynamically different, based on what it was fed with. Sounds confusing? Yep, that’s what I thought too when I …