I have read the Python docs about the print statement. With the following situation (2) not understood.
A space is written before each object is (converted and) written, unless the output system believes it is positioned at the beginning of a line. This is the case
- when no characters have yet been written to standard output,
- when the last character written to standard output is a whitespace character except
' ', or- when the last write operation on standard output was not a
I have test this behavior with the following code. However, it does not print 1 and 2 on different lines since '\t' is a whitespace and is obviously not a ' '.
print 1, '\t',
print 2
 
    