TITLE: continuous onto map from $(0,1)\to (0,1]$
QUESTION [7 upvotes]: I need to know whether There exists any continuous onto map from $(0,1)\to (0,1]$
could any one give me any hint?

REPLY [4 votes]: $f(x)=|\sin (\pi x)|$ will work