Delete empty/whitespace lines?
So I understand I can use line.strip() == '' to know if the line starts with whitespace or not. How can I open a file iterate through the lines and delete all blank or whitespace starting lines?

Thanks
Delete empty/whitespace lines?
===

So I understand I can use line.strip() == '' to know if the line starts with whitespace or not. How can I open a file iterate through the lines and delete all blank or whitespace starting lines?

Thanks