$P$ is set of all real polynomial in one variable. Define $$d(p,q)=\max\{|p(x)-q(x)|:x \in[0,1]\}$$ and $$K=\{p \in P,d(p,0)\leq 1 \}$$Prove or disprove $K$ is compact.
I think the only way to prove this is use the definition (open cover has finite subcover), but I don't know how.
No, $K$ is not compact, because $P$ (and hence $K$) is not complete under the metric $d$ by e.g., Stone-Weierstrass. Note that a metric space is compact if and only if it is complete and totally bounded.