I have to show that, if the title is true, then f is constant.
I can't find the way to approach this. I thought using the fact that, since f is whole, $f(z)=\sum_{n=0}^\infty a_nz^n$ for some $a_n\in\mathbb{C}$. Then $f(0)=a_0=f(z_0)=f(z_1)$. I wanted to show that $g(z) = f(z)-a_0$ trying to build a convergent sequence of zeros of $g(z)$ using the $z_0$ and $z_1$ so I could use the identity principle.
I tried it less, because I couldn't find a way to use it, but tried showing that using the $g$ defined above, $g^{(n)}(0)=0$ $\forall n\in\mathbb{N}$
Thanks in advance