Simple question

ElChino elchino at cnn.cn
Sat Aug 23 09:31:13 EDT 2014


<explodeandroid at 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.





More information about the Python-list mailing list