> here yo are reading the text line by line and if the line is empty (are > you sure that '\n' is the end of line character? in most languages you > have to use "\n" (with double quotes)), " " and ' ' are equal in python. Both return a string object.