+ 1
Is it the correct answer for the below question
X=[0,0,0] Y=[1,1,1] B = X and Y Print(not b) And the answer was False
2 odpowiedzi
+ 4
Any non-empy list results in the boolean True.
print(bool(x), bool(y)) # True True
b = x and y # True and True
print(not b) # not True -> False