I have an array of two int's, and I want to check if either is None, so I have this:
print hourArray
if hourArray[0] or hourArray[1] is None:
print "FAILED???"
else:
print "array is full"
And even though the print hourArray
shows this right before the if statement
[2040, 2640]
It prints FAILED???
even though neither of the elements in the array is None?
Why is this happening?