I have this in my textbook.
The function $f_{2}(z)=\cot (z)=\frac{\cos z}{\sin z}$ has a simple pole at $z=0 .$ The residue is $ \operatorname{Res}\left(f_{2}(z), z=0\right)=\lim _{z \rightarrow 0} \frac{z \cos z}{\sin z}=1 $
But why $\cot z$ has a simple pole at $0$? and no other poles elsewhere? thanks