There is an example given in my lecture notes, which I feel a bit uncertain about
$ \{ $functions$ \{1,2,...,n \} \to \mathbf F \} \cong \mathbf F^n $ by the map $ f \mapsto (f(1),f(2),...f(n))$ where $\cong$ means isomorphic
My question is what if $f(k)=0$ for some k ? Then the mapping would not be surjective. Could somebody help me on this please?
Seems that you're considerating $f$ and the map you have as one thing, which isn't the case. Let us first set some notations: $V=\{\text{functions}\,\{1,\cdots,n\}\to\mathbf{F}\}$ and let $$\varphi:V\to\mathbf{F}^n\\f\mapsto (f(1),\cdots,f(n))$$
$\varphi$ is surjective because the image of a basis of $V$ spans $\mathbf{F}^n$. A basis of $V$ is $\mathcal{B}=\{f_1,\cdots,f_n\}$ where for each $i\in\{1,\cdots,n\}$, $f_i$ is the function defined by:
1) $\forall k\in\{1,\cdots, n\}\backslash\{i\},\,f_i(k)=0$
2) $f_i(i)=1$
Then it's easy to see that $\varphi(\mathcal{B})=\mathcal{B}_c$ where $\mathcal{B}_c$ is the canonical base of $\mathbf{F}^n$.
$\varphi$ is also injective because you can easly prove that $\operatorname{null}\,\varphi=\ker\varphi=\{0_V\}$ where $0_V$ is the map that maps all the elements of $\{1,\cdots, n\}$ to $0$.