Let be a continuous function such that is a rational number for every real input . Show that must be a constant function.

Heres what I have:

Let be any real number. There must exist a sequence of rational numbers . Since is continuous, we can conclude that .

Im iffy on my last sentence and am thinking there could be a better way to do this using the EVT?