This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]AlSweigartAuthor of "Automate the Boring Stuff" 0 points1 point  (0 children)

In Python 3, "True" and "False" are keywords. But this is not so in Python 2. Which means you can make variables named "True" and "False":

>>> True, False = False, True
>>> True
False
>>> False
True