Let $X$ be an arbitrary set, and let $f : \mathbb R → X$ be a function that is continuous with respect to the Euclidean topology on $\mathbb R$ and the discrete topology on $X$. Prove that $f$ is constant.
Can you please help me out with this? I just started a course on topology and I don't know how to prove this. I know that in a discrete topology, $x_1,x_2$,... Converge to $x$ so $x=x_n$ as {$x$} is open.