At here, Example $8.2$, there is this statement:
Consider any countable and dense subset $\{ x_n : n \in \mathbb{N} \}$ of the unit ball of $X$ and let $K = \{ \frac{x_n}{n} : n \in \mathbb{N} \} \cup \{ 0 \}$. Plainly, $K$ is (weakly) compact and $X = \overline{span(K)}$.
Question: Why $K$ is compact and and $X = \overline{span(K)}$?