I was thinking about this question - If $f$ is analytic in $D$ and $z_{0}$ is a point in $D$ such that $|f(z)| \leq |f(z_{0})|$ holds for all $z \in D$ ,then show that $f$ is constant in $D$.
My attempt -
For a fixed $f$ , $|f(z_{0})|$ will be a constant say $c$ , now $|f(z)|< c $ $\forall z$ implies that $f$ is constant by Liouville's Theorem, is this approach correct.?