I have two lists in python
list1=[1,3,5,-3,-3]
list2=[2,-3,3,-3,5]
I want to produce a list that is true when the elements are of the same sign
result=[True,False,True,True,False]
which is the fastest and more pythonic way to do this?
EDIT:
Solution
I solve it by transforming both list to numpy arrays
np.array(list1)*np.array(list1)>0