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. The domain to filter by should be passed as a parameter to the function.
  assert filter_domain(["john@gmail.com", "sarah@yahoo.com", "bob@microsoft.com", "sophie@gmail.com"], "gmail.com") == ["john@gmail.com", "sophie@gmail.com"]
  assert filter_domain(["alice@hotmail.com", "mark@outlook.com", "linda@hotmail.com"], "hotmail.com") == ["alice@hotmail.com", "linda@hotmail.com"]
  assert filter_domain(["ken@example.org", "pat@test.com"], "yahoo.com") == []
  assert filter_domain([], "gmail.com") == []
output: def filter_domain(emails, domain):
      return [email for email in emails if email.endswith(f"@{domain}")]