I have problems with this exercise
Let $q:X\longrightarrow{Y} $ a continuous function. Suppose there exists a continuous function $f: Y \longrightarrow{X} $ such that $q \circ{} f$ is the identity function in $Y$. Prove that $q$ is an identification function.
I need a hint
Thanks