Systango interview question

Basic Python and file handling question