r/ProgrammerDadJokes • u/arjo_reich • Sep 09 '20
True != False
It's funny coz it's true; ain't that some bool shit
446
Upvotes
113
13
9
4
r/ProgrammerDadJokes • u/arjo_reich • Sep 09 '20
It's funny coz it's true; ain't that some bool shit
113
13
9
4
36
u/SurpriseMonday Sep 09 '20
Fun fact: in the earlier versions of Python (2), you could reassign boolean constants (True, False) to be whatever you wanted. Couple that with Python's built-in "variable swapping" syntax, you can write a line like "
True, False = False, True" and now the bools are opposite.