Suppose f: D-R is continuous with D compact. prove that x: 0<=f(x)<=1 is compact.
what i got so far is that since D is compact, then D is closed and bounded. and f is uniformly continuous and f(D) is compact. but i dont how to show that x: 0<=f(x)<=1 is compact.