input: 
  def filter_emails_by_domain(email_list, domain):
      """
      Filters a list of email addresses to include only those that belong to a specific domain.
  
      >>> filter_emails_by_domain(["john@gmail.com", "sarah@yahoo.com", "bob@microsoft.com", "sophie@gmail.com"], "gmail.com")
      ['john@gmail.com', 'sophie@gmail.com']
      """
      return [email for email in email_list if email.endswith(f"@{domain}")]
  
output:     return [email for email in email_list if email.endswith(f"@{domain}")]