def detectar_spam(email):
if email.endswith("@xyz.com"):
print(f"O email de {email} é spam.")
else:
print(f"O email de {email} não é spam.")
detectar_spam("[email protected]")
# output:
# O email de [email protected] não é spam.
detectar_spam("[email protected]")
# output:
# O email de [email protected] é spam.