write a function to find_pairs_that_sum_to_zero
Anonymous
lst = [0,4,7,0,9,0] pair = 0 for i in range(0,len(lst)): for j in range(i+1,len(lst)): if lst[i] + lst[j] == 0: print(i,j,lst[i], lst[j]) pair+=1 print(f"Total number of pairs {pair}")
Check out your Company Bowl for anonymous work chats.