Let $f$ be a continuous function on $X$. Let $E$ be any dense subset of $X$. Show that $f(E)$ is dense in $f(X)$.
Below, I have given my solution to the problem. However, I am not satisfied with my solution and feel something important is missing. Any hint is appreciated
solution:- since $E$ is dense in $X$, for any $\epsilon >0$ and $x$ $\in$ $X$ ,$ \exists s\in E $ such that $ 0<|x-s|<\delta $.$f$ is continuous in $X$ so for any $\epsilon >0$, we have $|f(x)-f(s)|< \epsilon $ whenever $|x-s|< \delta$. Then we see for any $\epsilon >0 $ and $f(x) \in X$, we find $f(s) \in f(E).$ This shows $f(E)$ is dense in $f(E)$
The first sentence of the solution makes no sense, since it ends with $\delta$, but you don't say what $\delta$ is.
Let $x\in X$ and ket $\varepsilon>0$. Since $f$ is continuous at $x$, there is a $\delta>0$ such that $\lvert y-x\rvert<\delta\implies\bigl\lvert f(y)-f(x)\bigr\rvert<\varepsilon$. And, since $E$ is dense in $X$, there is a $z\in E$ such that $\lvert z-x\rvert<\delta$. But then $\bigl\lvert f(z)-f(x)\bigr\rvert<\varepsilon$ and $f(z)\in f(E)$. So, every neighborood of any element of $f(X)$ contains an element of $f(E)$. In other words, $f(E)$ is dense in $f(X)$.