The question from my textbook is as follows:
Prove any sequence $\{a_n\}$ that $\lim_{n\to\infty} a_n = 0$ if and only if $\lim_{n\to\infty} |a_n| = 0$.
My attempt:
If $\lim_{n\to\infty} a_n = 0$, then for every $\epsilon > 0$, there exists an $n\in N$ such that $|an -0| = |a_n| = ||a_n|-0| < \epsilon$. Thus $\lim_{n\to\infty} |a_n| = 0$.
If $\lim_{n\to\infty} |a_n| = 0$, then for every $\epsilon > 0$, there exists an $n\in N$ such that $||a_n| - 0| = a_n = |a_n - 0| < \epsilon$. Thus $\lim_{n\to\infty} a_n = 0$.
I thought that my proof is a bit sketchy. Is my proof a valid proof? If not, how would I go about solving this?