print(1 in [1] == True) # False Why??????????????????
print((1 in [1]) == True) # True OK
print(1 in ([1] == True)) # TypeError: argument of type 'bool' is not iterable OK
So just what is happening here? How Python interprets this statement?
print(1 in [1] == True) # False Why??????????????????
print((1 in [1]) == True) # True OK
print(1 in ([1] == True)) # TypeError: argument of type 'bool' is not iterable OK
So just what is happening here? How Python interprets this statement?