I tried doing this :
a = [1,2,3]
if 68 not in a:
print 'missing'
a = [1,2,3]
if not 68 in a:
print 'missing'
the output is the same. But I doubt it if the two are logically the same. Is this logically the same or not? Thanks
I tried doing this :
a = [1,2,3]
if 68 not in a:
print 'missing'
a = [1,2,3]
if not 68 in a:
print 'missing'
the output is the same. But I doubt it if the two are logically the same. Is this logically the same or not? Thanks
Yes, they are same. This is same as how them literally means.
Even the internal comparison cost are same, probably.