[step:Prove (ii) $(\Leftarrow)$: $K$ metrizable implies $C(K)$ separable]Suppose $K$ is metrizable. Fix a metric $d$ on $K$ generating its topology. A compact metric space is separable: cover $K$ by finitely many balls of radius $1/n$ for each $n$, and take the union of centres over $n$ — countable, dense. Let $(k_m)_{m \in \mathbb{N}}$ be a countable dense sequence in $K$.
For each $m \in \mathbb{N}$ and $q \in \mathbb{Q}_{>0}$, define
\begin{align*}
g_{m,q} : K &\to \mathbb{R}, \\
k &\mapsto \max\bigl(q - d(k, k_m), 0\bigr).
\end{align*}
Each $g_{m,q}$ is continuous on $K$ (as the composition of the continuous distance function $k \mapsto d(k, k_m)$ with continuous operations). The collection $\{g_{m,q} : m \in \mathbb{N}, q \in \mathbb{Q}_{>0}\}$ is countable.
Let $\mathcal{A} \subseteq C(K; \mathbb{C})$ be the smallest unital $*$-subalgebra over $\mathbb{C}$ generated by the set $\{g_{m,q}\} \cup \{1_K\}$, i.e.\ the closure under $\mathbb{C}$-linear combinations, products, and complex conjugation, of the unital algebra over $\mathbb{Q}[i]$ generated by $\{g_{m,q}\} \cup \{1_K\}$. (We restrict the field of coefficients to $\mathbb{Q}[i]$ to keep $\mathcal{A}$ countable; the rational-coefficient algebra is dense in the corresponding $\mathbb{C}$-algebra under uniform convergence.) The set $\mathcal{A}$ is countable.
We verify the hypotheses of the **Stone-Weierstrass theorem** for the (real or complex) compact Hausdorff space $K$.
*Contains constants:* $1_K \in \mathcal{A}$ by construction.
*Closed under conjugation:* the generators $g_{m,q}$ and $1_K$ are real-valued, hence equal to their conjugates; algebraic operations preserve closure under conjugation, and we explicitly closed under conjugation.
*Separates points of $K$:* let $k_1 \neq k_2$ in $K$, and set $r := d(k_1, k_2) > 0$. By density of $(k_m)$, there is $m$ with $d(k_m, k_1) < r/3$. Choose $q \in \mathbb{Q}_{>0}$ with $r/3 < q < 2r/3$. Then
\begin{align*}
d(k_1, k_m) < r/3 < q, \quad d(k_2, k_m) \geq d(k_1, k_2) - d(k_1, k_m) > r - r/3 = 2r/3 > q.
\end{align*}
Hence $g_{m,q}(k_1) = q - d(k_1, k_m) > 0$ and $g_{m,q}(k_2) = 0$. So $g_{m,q}$ separates $k_1$ from $k_2$.
By **Stone-Weierstrass** (complex version, for compact Hausdorff $K$): a unital $*$-subalgebra of $C(K; \mathbb{C})$ that separates points is dense in $C(K; \mathbb{C})$ in the uniform norm. Hence $\mathcal{A}$ is dense in $C(K)$. Since $\mathcal{A}$ is countable, $C(K)$ is separable.[/step]