# Add some new votes into the right total

L = [["D",245],["R",342],["L",43],["P",12]]
newVotes = ["D",13]
for pair in L:
    if pair[0] == newVotes[0]:
        pair[1] = pair[1]+newVotes[1]
print L

