Solid Principles, Python.
print(f"{e.name} leads department {e.department}") The print_employee function needs a switch to check the type of e. In order to check for the type, the switch needs to know all possible employee types. from employees import Employee from employees import Manager def print_employee(e): if type(e)