[guided]Assume
\begin{align*}
\dim_k V = \dim_k W.
\end{align*}
Let $n$ be the nonnegative integer equal to the common value of these two dimensions. Let $0_V \in V$ and $0_W \in W$ denote the zero vectors of $V$ and $W$, respectively. The argument is to choose one basis in each space and match the basis vectors one by one. The only edge case is $n = 0$, where there are no basis vectors to list.
If $n = 0$, the zero-dimensionality means that the empty set is a basis of each space. Therefore every vector in $V$ is the zero vector $0_V$, and every vector in $W$ is the zero vector $0_W$. Thus $V = \{0_V\}$ and $W = \{0_W\}$. Define
\begin{align*}
T: V &\to W
\end{align*}
by $T(0_V)=0_W$. This is the only possible function from $V$ to $W$. It is $k$-linear because it sends the zero vector to the zero vector and there are no other vectors to check. It is injective because its domain has one element, and it is surjective because its image contains the only element of $W$. Hence $T$ is a $k$-vector space isomorphism.
Now suppose $n \ge 1$. Choose a basis $(v_1,\dots,v_n)$ of $V$ over $k$ and a basis $(w_1,\dots,w_n)$ of $W$ over $k$. We define a map by sending each $v_i$ to the corresponding $w_i$ and extending linearly. More explicitly, every $v \in V$ has a unique coordinate expression
\begin{align*}
v = \sum_{i=1}^n a_i v_i
\end{align*}
with $a_1,\dots,a_n \in k$. Define
\begin{align*}
T: V &\to W
\end{align*}
by
\begin{align*}
T(v) = \sum_{i=1}^n a_i w_i.
\end{align*}
Why is this well-defined? The coefficients $a_1,\dots,a_n$ are unique because $(v_1,\dots,v_n)$ is a basis. Thus the formula assigns exactly one vector of $W$ to each vector of $V$.
We verify that $T$ is $k$-linear. Let $v,u \in V$ and let $\lambda \in k$. Write
\begin{align*}
v = \sum_{i=1}^n a_i v_i
\end{align*}
and
\begin{align*}
u = \sum_{i=1}^n b_i v_i
\end{align*}
with $a_i,b_i \in k$. Since addition and scalar multiplication are computed coordinatewise in a basis,
\begin{align*}
v+\lambda u = \sum_{i=1}^n (a_i+\lambda b_i)v_i.
\end{align*}
Applying the definition of $T$ gives
\begin{align*}
T(v+\lambda u) = \sum_{i=1}^n (a_i+\lambda b_i)w_i.
\end{align*}
Using distributivity in $W$, this becomes
\begin{align*}
T(v+\lambda u) = \sum_{i=1}^n a_i w_i + \lambda \sum_{i=1}^n b_i w_i.
\end{align*}
By the definitions of $T(v)$ and $T(u)$, we conclude
\begin{align*}
T(v+\lambda u) = T(v)+\lambda T(u).
\end{align*}
So $T$ is $k$-linear.
To prove that $T$ is an isomorphism, we construct its inverse explicitly. Every $w \in W$ has a unique expression
\begin{align*}
w = \sum_{i=1}^n c_i w_i
\end{align*}
with $c_1,\dots,c_n \in k$. Define
\begin{align*}
S: W &\to V
\end{align*}
by
\begin{align*}
S(w) = \sum_{i=1}^n c_i v_i.
\end{align*}
This map reverses the correspondence between the two bases. We verify that $S$ is $k$-linear. Let $w,z \in W$ and let $\mu \in k$. Write
\begin{align*}
w = \sum_{i=1}^n c_i w_i
\end{align*}
and
\begin{align*}
z = \sum_{i=1}^n d_i w_i
\end{align*}
with $c_i,d_i \in k$. Since addition and scalar multiplication are computed coordinatewise in the basis $(w_1,\dots,w_n)$,
\begin{align*}
w + \mu z = \sum_{i=1}^n (c_i + \mu d_i) w_i.
\end{align*}
Applying the definition of $S$ gives
\begin{align*}
S(w + \mu z) = \sum_{i=1}^n (c_i + \mu d_i) v_i.
\end{align*}
Using distributivity in $V$,
\begin{align*}
S(w + \mu z) = \sum_{i=1}^n c_i v_i + \mu \sum_{i=1}^n d_i v_i.
\end{align*}
By the definitions of $S(w)$ and $S(z)$,
\begin{align*}
S(w + \mu z) = S(w) + \mu S(z).
\end{align*}
Therefore $S$ is $k$-linear.
Let $\operatorname{id}_V: V \to V$ and $\operatorname{id}_W: W \to W$ denote the identity maps on $V$ and $W$, respectively. Now check the compositions. If $v = \sum_{i=1}^n a_i v_i$, then
\begin{align*}
S(T(v)) = S\left(\sum_{i=1}^n a_i w_i\right) = \sum_{i=1}^n a_i v_i = v.
\end{align*}
Thus $S \circ T = \operatorname{id}_V$. Similarly, if $w = \sum_{i=1}^n c_i w_i$, then
\begin{align*}
T(S(w)) = T\left(\sum_{i=1}^n c_i v_i\right) = \sum_{i=1}^n c_i w_i = w.
\end{align*}
Thus $T \circ S = \operatorname{id}_W$. Since $T$ has a two-sided inverse $S$, the map $T$ is bijective. Since $T$ is also $k$-linear, it is a $k$-vector space isomorphism from $V$ to $W$.[/guided]