Quote:
|
(Note that one space between each column was added by the way print works: it always adds spaces between its arguments.)
|
Whoever wrote that is full of dung, as it pertains to formatted strings. The space that you have in this example is the one from the format string.
Look at this:
for i in range(1, 6):
print "%d-->%d" % (i, i*i)
"""
result (no spaces) ...
1-->1
2-->4
3-->9
4-->16
5-->25
"""