Solid Principles, Python.
initializer that allows for the printer object to be injected. A dunder init method is added and the printer argument is stored in self. self.printer now holds an instance of a printer object. This printer object can now be used to print the receipt. Notice there are no imports and no object