Is there exist a onto continuous function from (0,1) to (0,1]
Answer: Yes.
My Attempt:
Let $f: (0,1) \to (0,1]$ such that $f(x) = x$. This is onto itself but I know that if f is onto then Range $(f) =$ Codomain $(f)$. But in this case, It is not possible.
I'm unable to find such type of function. Please help me.