$e^{i \frac{2\pi}{2} }=(e^{i 2\pi})^{1/2}=1^{1/2}=1$ where the last equality follows from $1*1=1$.
Meanwhile, $e^{i \frac{2\pi}{2} }=e^{i\pi }=-1$ by canceling out $2$.
How is this paradox related to the concept of branch in complex variable? Can some explain brach or branch cut in the context of this paradox? Thank you.