Ok, that's connected cause any two open sets intersect by uncountability. The only convergent sequences in that space are eventually constant ones (otherwise there are infinitely many elements not equal to the limit and their complement is an open neighborhood of the limit that the sequence isn't eventually in).
Assume $f$ is not constant in any neighborhood of a point $x$. Then there is a sequence $x_n->x$ such that $f(x_n)\neq f(x)$ for all $n$, contradiction to continuity. So $f$ is locally constant, hence constant.