I'm confused.
foo = ("empty", 0)
foo[0] is "empty"
Returns False. This seems to be a problem with keyword strings, as "list" fails as well. "empt" and other strings return true. This only seems to happen with tuples, as if foo is a list the code also returns true
I've tested this with python 3.4.3 and python 3.5 and both behave this way, python2.7 doesn't seem to have this issue though and returns true as expected.
Am I missing some standard on tuples in python3? I've attempted to google-foo this problem but am coming up short.
Edit: To clear things up, my exact question is why does
foo = ("empty", 0)
foo[0] is "empty"
return False, but
foo = ("empt", 0)
foo[0] is "empt"
return True?