The code
for item in ('sin', 'cos', 'sinc', 'sin^2'):
print(item not in ('sin^2'))
produces the result
False
True
True
False
but
for item in ('sin', 'cos', 'sinc', 'sin^2'):
print(item not in ['sin^2'])
produces the result
True
True
True
False
Why?