Let $f : X \to Y$ is continuous and $E \subset X$ is dense set. Then I want to show that $f(E)$ is also dense in $f(X)$
My approach is like this :
Let $y \in f(X)\setminus f(E)$, then $\exists x \in X\setminus E $ such that $f(x) = y$.
Then I can find a sequence {${x_n}$} with $x_i \in E$ for all $i$, and $\forall \epsilon > 0, \exists N $ s.t $|x_n -x| < \epsilon$ for $n > N$
I want to conclude that, the sequence $f(x_n)$ converges to $f(x)$. If that is true, since $f(x_i) \in f(E)$ , I can conclude that $y=f(x)\in E'$ which means, $f(E)$ is dense in $f(X)$
However, I'm not sure that conclusion is right. I'm trying to use the definition of continuity but it's confusing to me and feels like I'm wrong. Can you give me an advice?