Solid Principles, Python.
created a dependency on a concrete class. This is a violation of the dependency inversion principle. And by doing so, it also violates the open-closed principle. Let me demonstrate this by adding a new printer. Instead of printing to the internal cash register printer, a laser printer will be used.