This is Exercise 5.8 from Gathmann's notes on Algebraic Geometry, and I'm having a bit of trouble for (a) and (b): page 41 of http://www.mathematik.uni-kl.de/~gathmann/class/alggeom-2014/main.pdf
(a) asks you to show that any morphism $f:\mathbb{A}^1\backslash \{0\}\rightarrow\mathbb{P}^1$ can be extended to a morphism from $\mathbb{A}^1$ to $\mathbb{P}^1$.
(b) asks you to show that not all morphisms $f:\mathbb{A}^2\backslash \{(0,0)\}\rightarrow\mathbb{P}^1$ can be extended to a morphism from $\mathbb{A}^2$ to $\mathbb{P}^1$.
I suspect for (b) that the morphism that takes $(x,y)$ to $(x:y)$ can't be extended, but I'm not exactly sure how to prove this. Also, is the fact that $\mathcal{O}_{\mathbb{A}^2}(\mathbb{A}^2\backslash \{(0,0)\})=\mathcal{O}_{\mathbb{A}^2}(\mathbb{A}^2)$ useful in any way?
I would prefer to have an answer that doesn't involves schemes or anything too advanced like that.