In this post we will see how to merge lines in a given file or standard output. 

sed 'N;s/n/ /' filename

paste -d " " – – < filename

Related concept:   Python Variable Types