Let $X$ a compact set. Prove that if every connected component is open then the number of components is finite.
Ok, $X = \bigcup C(x)$ where $C(x)$ is the connected component of $x \in X.$ I know that $X \subset UA_\lambda$, where $A_\lambda$ is a finite family of opens set but how can i conclude that the components are finite??
$\textbf{Hint:}$ Argue by contradiction: assume $X$ has infinite $\textit{open}$ connected components and prove this implies that $X$ is not compact.
Recall that $X$ being non-compact is equivalent to the existence of an open cover of $X$ that has no finite subcover. Can you think of such a cover in this case?