I was working on a project and stumbled across this weird anomaly, apparently the Boolean value for any list or tuple with an None value is True
Input
print(bool([])) # empty list
print(bool(())) # empty tuple
print(bool([None])) # list with None
print(bool((None,))) # tuple with None
Output
False
False
True
True
can someone give a brief explanation as to why an list/tuple object with presumably None(null) value will have a Boolean value of True instead of False?