I Think

Manipulating Truth…

… is easy.

Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit (Intel)] on win32
Type “help”, “copyright”, “credits” or “license” for more information.
>>> True
True
>>> True == False
False
>>> True = False
>>> True == False
True
>>> True == True
True
>>> int(True)
0
>>> str(True)
‘False’
>>>

Advertisements
Standard