I would like a verification of this proof:
Prove that $A\in M_n(\mathbb{C})$ is a nilpotent matrix if and only if $0$ is its only eigenvalue.
($\Rightarrow$): if $A$ is nilpotent, then there's a index $k \le n$ such that $A^k = 0$. Let $\lambda$ be an eigenvalue of $A$. Since $Ax = \lambda x$, $A^kx = \lambda^k x = 0$, so $\lambda^k x = 0 \Rightarrow \lambda = 0$.
($\Leftarrow$): argue for the sake of contradition that $0$ is the only eigenvalue of $A$ but $A$ is not nilpotent. Then $A \ne 0, A^2 \ne 0, \dots, A^n \ne 0$. Since $Ax = \lambda x$ with $x \ne 0$, $Ax = 0, A^2x = 0, \dots, A^nx = 0$. A contradition.
But something feels off about this, I'm not sure if this is correct.