I have a nested list that looks like this:
nested = [['a', 1], ['v', 2], ['a', 5], ['v', 3]]
I want to sum values in nested list for each letter value in list, so that output looks like this:
[['a', 6], ['v', 5]]
I have tried to play with for loops, but I couldnt find the solution.