Be Careful With Chained Operations
We'll cover the following...
Chained operations can be tricky sometimes. Let’s check them out!
Press + to interact
print((False == False) in [False]) # makes senseprint(False == (False in [False])) # makes senseprint(False == False in [False]) # now what?
Now, take a look at this.
Press + to interact
print(True is False == False)print(False is False is False)
How about this?
Press + to interact
print(1 > 0 < 1)print((1 > 0) < 1)print(1 > (0 < 1))
Explanation
As per the docume ...