I would like to make several statements that give standard output without seeing newlines in between statements.
Specifically, suppose I have:
for it
You can add a trailing comma to your print statement to print a space instead of a newline in each iteration:
print item,
Alternatively, if you're using Python 2.6 or later, you can use the new print function, which would allow you to specify that not even a space should come at the end of each item being printed (or allow you to specify whatever end you want):
from __future__ import print_function
...
print(item, end="")
Finally, you can write directly to standard output by importing it from the sys module, which returns a file-like object:
from sys import stdout
...
stdout.write( str(item) )