input: Write a function that takes a list of email addresses as input and returns a filtered list of email addresses that belong to a particular domain.
  
  def filter_emails(email_list, domain):
      filtered_list = [email for email in email_list if email.endswith(f"@{domain}")]
      return filtered_list
  
  assert filter_emails(["john@gmail.com", "sarah@yahoo.com", "bob@microsoft.com", "sophie@gmail.com"], "gmail.com") == ["john@gmail.com", "sophie@gmail.com"]
  assert filter_emails(["a@yahoo.com", "b@yahoo.com", "c@gmail.com"], "yahoo.com") == ["a@yahoo.com", "b@yahoo.com"]
  assert filter_emails(["test@domain.com", "test2@domain2.com"], "domain.com") == ["test@domain.com"]
  assert filter_emails(["user@site.net", "user@site.net"], "site.net") == ["user@site.net", "user@site.net"]
  assert filter_emails([], "domain.com") == []
output: def filter_emails(email_list, domain):
      filtered_list = [email for email in email_list if email.endswith(f"@{domain}")]
      return filtered_list