Jan-30-2018, 09:35 AM
(Jan-30-2018, 09:10 AM)Gribouillis Wrote:yield '\n'
generates a string containing a single newline after all the lines have been generated. It is a way to ensure that there is a newline at the end of the file by adding a newline. Theif line.strip()
test succeeds if it remains anything in the line after removing all the white space at both ends.
Thanks a lot for your explanation!