My trainee just reached out to me and asked why False == False != True
evaluates to
True
in Python, but false
in JavaScript.
I think that statement is false
/ False
, no matter how you solve it, it spits out False
in my head.
Heres the breakdown:
given:
False == False != True
#Case 1:
False == False => True
True != True => False
#Case 2:
False != True => True
False == True => False
Am I missing something obvious? I tried JS with != and ===
but since the type is the same, it keeps the same ouput.