You are given a sentence in English. Your job is to translate the English sentence into Portugese.
Q: With that in mind, I set about teaching EDI a magic trick.
A:

Show your work and conclude with the exact phrasing "Therefore, the final answer is [answer]." where [answer] is just the final number or expression that solves the problem.
user
Com esse propósito, ensinei ao EDI um truque de magia.