Hi can someone shed light on the mechanics of working "in" operator in Python.
I'm now dealing with examples below:
print ('a' not in ['a', 'b']) # outputs False
print (not 'a' in ['a', 'b']) # outputs False -- how ???
print ('c' not in ['a', 'b']) # outputs True
print (not 'c' in ['a', 'b']) # outputs True
print (not 'a') # outputs False
# ok is so then...
print (not 'a' in ['b', False]) # outputs True --- why ???
I'm now in wonder how it can be so. If someone knows, please share your knowledge. Thanks =)