Suppose $(X, \tau_X )$ is path-connected. Then is it true that there is a continuous function from $(X, \tau_X )$ to $([0,1],τ_E)$ with $f(x) = 0$ and $f(y) = 1$ ?
My answer is no, the counterexample I give is $X=[0,1) \cup (1,2]$, $x=0$ and $y=\frac\pi2$, so that $f(z)=\sin(z)$ satisfies $f(0)=0$ and $f(\frac\pi2)=1$ and $f$ is clearly continuous.
I guess there is a much easier counterexample, any ideas ?
Let $X$ be a topological space which consists of a single point. Then $X$ is path-connected, but the range of any map from $X$ to $[0,1]$ consists of a single point.