I have large string which I split by newlines. How can I remove all lines that are empty, (whitespace only)?
pseudo code:
for stuff in largestring:
My version:
while '' in all_lines: all_lines.pop(all_lines.index(''))