I'm trying to prove that $\mathbb{P}^1$ is not affine over an algebraically closed field, $k$.
My first thoughts are to observe that, by definition, $\mathbb{P}^1$ is affine if $*: \textrm{Morf}(X,\mathbb{P}^1) \to \textrm{Hom}_k(k[\mathbb{P}^1],k[X])$ is bijective for all algebraic varieties $X$. Setting $X = \mathbb{P}^1$, we have $*:\textrm{Morf}(\mathbb{P}^1,\mathbb{P}^1) \to \textrm{Hom}_k(k,k)$ should be bijective. I think that there is a contradiction here, somehow it doesn't make sense that this can be injective. For instance, if we take the identity morphism, $i$, and create a new morphism, $f$, which sends $\infty$ (where $\mathbb{P}^1 = \mathbb{A}^1 \cup {\infty}$) to an element of $k$, then then $f^* = g^*$.
Is this the right idea?