Let (S, T) be a topological space. Let X be a set and have an indiscrete topology on X. Prove that a function f : X --> R is continuous iff f is constant.
My proof: If f is continuous, f^-1({f(x)}) /in T and hence f^-1({f(x)}) = X. Thus f : X --> R is constant.
*I was told this is incorrect, please help!*
My proof: If f is continuous, f^-1({f(x)}) /in T and hence f^-1({f(x)}) = X. Thus f : X --> R is constant.
*I was told this is incorrect, please help!*