I'm trying to prove it using the following definition:
X is called compact if each of its open covers has a finite subcover.
I've tried the following
Assume that {p} is compact (Here is the problem, I don't know how to explain it formally.)
So {p} has a finite subcover $\bigcup_{i=1}^n Z_i$ and let $\bigcup_{i=1}^n V_i$ a finite subcover of K.
Then
$$\bigcup_{i=1}^n Z_i \times \bigcup_{i=1}^n V_i = \bigcup_{i=1}^n U_i \times V_i $$
It's a finite subcover of $ \{p\} \times K$.
Also I'd like to know, Can I choose the finite number of subcovers of compact sets?
Because I chose the same number of subcover for {p} and K, and I don't know if it's right.
Thank you for your attention.