With these statements:
>>> "foo" in "foobar"
True
>>> "foo" in "foobar" is True
False
>>> ("foo" in "foobar") is True
True
Why is the second statement not returning True
?
With these statements:
>>> "foo" in "foobar"
True
>>> "foo" in "foobar" is True
False
>>> ("foo" in "foobar") is True
True
Why is the second statement not returning True
?