I was looking at the answer at following link https://stackoverflow.com/a/638069 but couldn't understand how does it perform
sum(i for i, j in list_of_pairs)
I think it will only sum up the first value of the tuples in the
list_of_pairs
I was looking at the answer at following link https://stackoverflow.com/a/638069 but couldn't understand how does it perform
sum(i for i, j in list_of_pairs)
I think it will only sum up the first value of the tuples in the
list_of_pairs