I have to prove, as an exercise, that all real, continuous, periodic and non-constant functions cannot have an arbitrarily small period. This was my attempt:
Let $f:\mathbb{R}\rightarrow \mathbb{R}$ be a functions for which the hypothesis of the problem hold. Since $f$ is not constant, there are $z,y\in \mathbb{R}$ such that $f(z)\neq f(y)$, which entails that $|f(z)-f(y)|=D>0$. Suppose, WLOG, that $z>y$, and let there be $0<\epsilon<D$. Since $f$ is continuous, there exists $\delta>0$ such that $$|x-z|<\delta \implies |f(x)-f(z)|<\epsilon. $$ Now, suppose for the sake of contradiction that there is no least period. There exist, then, a period $T$ of $f$ such that $T<2\delta$. The following chain of implications holds: $$ 0<T<2\delta \implies \frac{2\delta}{T}>1 \implies \frac{(z-y+\delta)}{T}-\frac{(z-y-\delta)}{T}>1 \implies \exists n \in \mathbb{N}:$$$$\frac{z-y-\delta}{T}<n<\frac{z-y+\delta}{T}\implies z-y-\delta<nT<z-y+\delta \implies |y+nT-z|<\delta \implies |f(y+nT)-f(z)|=|f(y)-f(z)|=D<\epsilon. $$ But this is a contradiction, because we supposed at the beginning that $D>\epsilon$.
Can you spot any mistakes I overlooked? Could the writing be improved? How would consider it if it had been written in an exam paper?