Continuous Image of Compact Space is Compact/Corollary 3

Corollary to Continuous Image of Compact Space is Compact
Let $S$ be a compact topological space.

Let $f: S \to \R$ be a continuous real-valued function.

Then $f$ attains its bounds on $S$.