In my course of algebraic topology our professor said that although $S^n$ is not contractible, it is as a subspace of $S^{n+1}$, but he said it just as a comment and he gave the intuitive idea of why it is so but not a formal proof. However, even if I can understand that we can take the equatorial circle of the 2-sphere and slide it up through the the 2-sphere to the north pole, it doesnt't make sense to me that it is contractible when regarded as a subspace of $S^2$ but not contractible by itself. At least this doesn't make sense whith the usual definition of 'contractible space'.
So, my question is: is there a weaker notion of 'contractible space' relative to another space in which it is embedded?
My guess is that my professor meant to say that there is a homotopy $H:S^{n+1}×I\to S^{n+1}$ such that $H|_{S^{n+1}×\{0\}}=1_{S^{n+1}} $ and $H(S^n×\{1\})=x_0 \in S^n$.
There are two ways to interpret this, and it seems you are confused about which your professor meant.
1) As in the last sentence of your question, or
2) There is a map $G:S^n\times I\to S^{n+1}$ with $G\mid_{S^n\times\{0\}}$ the inclusion as the equator and $G\mid_{S^n\times\{1\}}$ a constant map.
Either way you interpret what your professor said is correct. For the first way, stereographically project $S^{n+1}\setminus\{\text{south pole}\}$ onto $\mathbb R^n$, apply your favorite contraction of the closed unit ball in $\mathbb R^{n+1}$, then apply the inverse of the projection. For the other interpretation, at time $t$, map the point $(x_1,\ldots,x_{n+1})\in S^n$ to $(\sqrt{1-t^2}x_1,\ldots,\sqrt{1-t^2}x_{n+1},t)$.
As for which interpretation your professor meant, you should ask them.