import sys print "this is a newline" sys.stdout.write("this has NO newline")