[Solved] Can someone explain why this compiles? [duplicate]
a==14 is not a statement, it’s an expression. It produces a boolean result, that is discarded as soon as it is produced. It is a line that has absolutely no effect on the program. On the other hand, there is no === operator in python, that’s why your program fails in that case. Contrary to … Read more