+ 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

18th Jun 2019, 3:43 AM
Prashant Kumar
Prashant Kumar - avatar
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
18th Jun 2019, 3:48 AM
Diego
Diego - avatar