what the author is doing is like this in Python:
stuff=["a b", "c d", "e f"] for thing in '\n'.join(stuff).split('\n'): print thing
what the author is doing is like this in Python: