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]
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]