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 provided as an argument to the function.
  assert filter_email_by_domain(["john@gmail.com", "sarah@yahoo.com", "bob@microsoft.com", "sophie@gmail.com"], "gmail.com")==["john@gmail.com", "sophie@gmail.com"]
  assert filter_email_by_domain(["alice@hotmail.com", "ben@hotmail.com", "carol@yahoo.com"], "hotmail.com")==["alice@hotmail.com", "ben@hotmail.com"]
  assert filter_email_by_domain(["david@outlook.com", "eve@outlook.com"], "outlook.com")==["david@outlook.com", "eve@outlook.com"]
  assert filter_email_by_domain(["john@gmail.com", "sarah@yahoo.com", "bob@microsoft.com", "sophie@gmail.com"], "yahoo.com")==["sarah@yahoo.com"]
output: def filter_email_by_domain(emails, domain):
      return [email for email in emails if email.endswith(f"@{domain}")]