# call this via "python[3] script name" import sys for _ in range(10): mystr = 'multi-line-string\n' sys.stdout.write(mystr)