sum each value in a list of tuples

后端 未结 3 948
醉话见心
醉话见心 2020-12-01 10:30

I have a list of tuples similar to this:

l = [(1, 2), (3, 4), (5, 6), (7, 8), (9, 0)]

I want to create a simple one-liner that will give me

3条回答
提交回复
热议问题