Python Function to Remove Empty Lines from a File

Prompt

Result