Let $X$ be an arbitrary set, and let $f: \Bbb R → X$ be a function that is continuous with respect to the euclidean topology on $\Bbb R$ and the discrete topology on $X$. Prove that $f$ is constant.
So basically, in a different scenario, we're given the structure of the topological basis we're working with. In my case, however, I'm not very sure as to how to approach this in a more general way, without being given a basis to work with. Any ideas?