Python, Programming, Data Science, Artificial Intelligence, Data.
has multiple responsibilities: managing employee data and sending emails. To adhere to the SRP, we should separate these responsibilities into different classes: class Employee: def __init__(self, name, email): self.name = name self.email = email def save_to_database(self): # Code to save employee