Homotopy between two paths in a path connected space

I'm trying to show that any two paths in a path connected space,are homotopic ( homotopic not path homotopic) ,any help?

Hint. $[0,1]$ is contractible. So any path is homotopic to a constant one. Can you elaborate from here ?