Tuesday, April 26, 2011

formatting - How do I keep Python print from adding spaces ? - Stack Overflow

formatting - How do I keep Python print from adding spaces ? - Stack Overflow: "Just a comment. In Python 3, you will use

print('h', end='')
to suppress the endline terminator, and

print('a', 'b', 'c', sep='')
to suppress the whitespace separator between items."