A continuous function $f:\mathbb R \to \mathbb Q$ must be constant.
My Attemps: Suppose it is not. Then there must be $x,y\in \mathbb R $ such that $f(x) \neq f(y)$. Since $f$ is continuous it achieves all values between $f(x)$ and $f(y)$.
Later on, I couldn't move. Could you help me? Thanks in advance.