I have a list :
A = [[33, 0], [34, 0], [35, 5], [36, 0], [38, 0], [39, 0], [40, 0], [41, 0], [42, 0], [43, 0], [44, 0], [45, 1], [46, 0], [47, 0], [48, 0], [49, 0], [50, 0], [51, 1], [52, 0], [56, 0], [57, 0], [58, 0], [59, 0], [62, 1]]
And a second list :
B = [[35, 1], [35, 2], [35, 1], [35, 2], [35, 0], [45, 7], [51, 0], [62, 0]]
My goal is to create the list C like :
if A[0] = B[0] :
do A[1] + B[1]
The result should be :
C = [[33, 0], [34, 0], [35, 11], [36, 0], [38, 0], [39, 0], [40, 0], [41, 0], [42, 0], [43, 0], [44, 0], [45, 8], [46, 0], [47, 0], [48, 0], [49, 0], [50, 0], [51, 1], [52, 0], [56, 0], [57, 0], [58, 0], [59, 0], [62, 1]]
Hope it's understanding. I don't know how to write it properly in Python.
[35, 11]and not[35, 6]?A[0]!=B[0]?