I am a newbie to python.I have a text file consisting of lots of blank lines.I need to remove these blank lines such that the existing lines will not be added/combines among each other.
text file
I am new to python
Python is a good programming language
Expected output:
I am new to python
Python is a good programming language
And my lines starts from second/nth line.I wanted to begin it from first line.Please help !Answers will be appreciated!