>>> dict = {}
>>> a=2
>>> if a is not None and dict is None:
... print("lol")
... else:
... print(" Print result is a")
...
result is a
Why does the first if statement does not run? I am specifying that the
dictis empty and that
" a"` exists.
Reference: https://docs.python.org/2/library/stdtypes.html#truth-value-testing