In Python 3, where print
is a function, this would generate the correct output.
In Python 2, where print
is a statement, you're not printing two different objects - you're printing a single tuple, created by putting the items in parentheses with a comma between them (,)
. The string representation of a tuple tries to show how that string would look in the program.
The fix is to take off the parentheses.