First, you should be more specific of what you expect.
If you want your list to be the sum of the numbers in the tuples, here’s what you can do:
listnum = [sum(x) for x in listnum]
1
solved How can I add tuples in a list? [closed]
First, you should be more specific of what you expect.
If you want your list to be the sum of the numbers in the tuples, here’s what you can do:
listnum = [sum(x) for x in listnum]
1
solved How can I add tuples in a list? [closed]