Another method is to use the Heine-Borel theorem (note that is a separated space) :
If A is a compact, then there exists a finite family of subsets , where I is a finite set, such that
Similarly, , where J is a finite set.
and is finite.
Thus is a compact set.