Exercise: Using the fact $d$ is a metric hence continuous. Prove that if a metrizable space $(X,\tau)$ is connected and $X$ has at least 2 points, then $X$ has uncountable number of points.
I found the following answer on Mathstackexchange by Mariano Suárez-Álvarez
Let your points be $a$ and $b$.
Let $\lambda\in(0,1)$ Suppose there is no point $x$ in your space such that $d(a,x)=\lambda d(a,b)$. Then the sets $\{z:d(a,z)<\lambda d(a,b)\}$ and $\{z:d(a,z)>\lambda d(a,b)\}$ are two non-empty open sets which partition the space.
Since we are assuming connectedness, this is impossible.
Therefore, the image of the function $d(a,\mathord\cdot):X\to\mathbb R$ contains the interval $(0,d(a,b))$, and this can only happen if $X$ is uncountable.
Questions:
1) Why does the author uses $\lambda$? If instead the author used $d(a,b)$ and all other points were diferent from $b$ the distance would still be different, allowing the disjoint partition of the space.
2) I know the metric is continuous function into $\mathbb{R}$. How does the author deduces that the image contains $(0,d(a,b))$? How does that relate to the previous argument of the partition?
Thanks in advance!
I think your confusion arises because the proof you quote only uses continuity of the metric in a rather artificial way. Here are two proofs, the first doesn't really use the continuity and the second does. In both proofs, we assume $X$ is connected and metrizable and has at least two points, say $a \neq b$.