How does the python interpreter work for the or operator
cause i am a bit confused with its output
cause i am a bit confused with its output
Code:
>>> s= "unbound method __delitem__() must be called with _Environ instance as first argument (got str instance instead)" >>> >>> if "least" in s: ... print "hi" ... [B]>>> if "least" or "exactly" in s: ... print "hi" ... hi[/B] >>> if "exactly" in s: ... print "hi" ... >>>
Comment