I have two boolean lists, e.g.,
x=[True,True,False,False] y=[True,False,True,False]
I want to AND these lists together, with the expected o
You can use the zip function
zip
x=[True,True,False,False] y=[True,False,True,False] z=[a and b for a,b in zip(x,y)]