The exercises states:
Let $f:D \to \mathbb{C}$ be a meromorphic function with a finite number of roots and poles, $D$ being some simply-connected open set.
Prove that there exists a meromorphic function $g:D \to \mathbb{C}$ such that $g^2=f$ in $D$, if and only if every zero and every pole of $f$ are of even degree.
($g^2$ means $g$ multiplied by $g$ (nothing else)).
Now, the following question "Continuous root for analytic functions" deals with a similar case, but it is stated there that $f$ has only one zero (and no poles).
How to prove when there are multiple zeros? And poles?
Thanks for the help!