I am trying to show that $(a,b)$ is not compact while $[a,b]$ is compact, purely based on definition of compactness. Here are examples, which I write it better: $[a,b]$ is covered by the intervals $(a-\dfrac{1}{n} , b+\dfrac{1}{n})$ for $n$ in $N$. However, any single one of those intervals will suffice as a finite subcover, so $[a,b]$ is compact.
Now about $(a,b)$: Suppose $O[n] = (a+\dfrac{1}{n} , b )$. The union of $O[n]$ sets is $(a,b)$, but there is no finite union of of those to be superset of $(a,b)$.
Those explanations can't be true; because I can say $(a,b)$ is also covered by the intervals $(a-\dfrac{1}{n} , b+\dfrac{1}{n})$ for $n$ in $N$. And, any single one of those intervals will suffice as a finite subcover, so $(a,b)$ is compact.
Please help me to prove that $(a,b)$ is not compact, $[a,b]$ is compact, and $[a,b)$ is not compact; I mean a simple proof and just based on the definition of compactness. All answers in this link, requires other knowledge or they are not clear and easy.
Thank you.