<explodeandr...@gmail.com> wrote:

Can some one explain why this happens:
True, False = False, True
print True, False
False True

I assume the value of True and False can be falsified. Like the 'None'
object can be. So swapping their values and printing them is similar to:
 a = 0
 b = 1
 a, b = b, a
 print a, b

Except that True/False are initialised built-ins.


--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to