>>> print "%r, %r" % (True, False)
True, False
This is not specific to boolean values – %r calls the __repr__ method on the argument. %s (for str) should also work.
>>> print "%r, %r" % (True, False)
True, False
This is not specific to boolean values – %r calls the __repr__ method on the argument. %s (for str) should also work.