Python is cool: after so many years of using it, there are these little peculiar things that amaze me. I recently stumbled upon a very simple line of code that most of the experienced python programmers I know could not explain without googling it.
WTF…
Why is it surprising? I think because that’s not what a human would output if he were asked to execute this command. Here is how I reasoned about it.
I need to execute the first is statement, which would give meFalse and then execute the second is which would give me True. Equivalently:

#funny #programming #python #python3

Why `True is False is False` -> False?
1.25 GEEK