I want to prove that $X = \mathbb{A}^2\setminus (0,0)$ is not affine.
My attempt: If $\Bbbk[X] = \Bbbk[x,y]$ then $X$ is not affine since $(x,y) \subset \Bbbk[x,y]$ is a proper ideal, but $V(x,y) \cap X = \emptyset$. $X = \{x \ne 0\} \cup \{y \ne 0\}$ therefore i want to say that $\Bbbk[X] = \Bbbk[x,y,y^{-1}] \cap \Bbbk[x,y,x^{-1}] = \Bbbk[x,y]$.
But i can't prove rigorously both steps.