Python 2.5.2 (r252:60911, Jul 31 2008, 17:31:22)
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> print False
False
>>> False=True
>>> print False
True
>>> False == True
True
>>>
Can you explain me why 'False' can to be 'True' ?
False is not defined as a keyword but as global variable.
But in Python 3, it will become a keyword !
No comments:
Post a Comment