I have a homework as follows:
Find connected space $X$ such that all continuous real-valued functions defined on $X$ is constant!
Please help me to find a such space
I have a homework as follows:
Find connected space $X$ such that all continuous real-valued functions defined on $X$ is constant!
Please help me to find a such space
Since you want an example less trivial than the one-point space, I’ll post my comment as an answer: try showing that an infinite set with the cofinite topology has the desired properties.
It’s not Hausdorff; Hausdorff examples are much harder to find. There are even $T_3$ examples, though they’re pretty complicated; if you’re interested, you can learn more about them from the answers to this question.
a single point!
more generally, take any set and take the topology to be the empty set and the whole space
If you consider X={p} just one point! Every function from X to the reals is necessarily 1) continuous, and 2) constant !