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]
More Related Contents:
- How to sort a list/tuple of lists/tuples by the element at a given index?
- What’s the difference between lists and tuples?
- How to merge lists into a list of tuples?
- How to extract the n-th elements from a list of tuples
- Are tuples more efficient than lists in Python?
- List vs tuple, when to use each? [duplicate]
- a mutable type inside an immutable container
- How to unzip a list of tuples into individual lists? [duplicate]
- Append to a list defined in a tuple – is it a bug? [duplicate]
- Subtracting 2 lists in Python
- List of tuples to dictionary [duplicate]
- Explicitly select items from a list or tuple
- What is the inverse function of zip in python? [duplicate]
- How to find the maximum value in a list of tuples? [duplicate]
- Converting a list of tuples into a dict
- How to compare a list of lists/sets in python?
- Find an element in a list of tuples
- Why is tuple faster than list in Python?
- How to convert list of tuples to multiple lists?
- What’s the difference between lists enclosed by square brackets and parentheses in Python?
- Convert a columns of string to list in pandas
- How to flatten a tuple in python
- Does Python have an immutable list?
- Swap values in a tuple/list inside a list in python?
- How does str.startswith really work?
- Concatenate elements of a tuple in a list in python [duplicate]
- If in Python I put a list inside a tuple, can I safely change the contents of that list? [duplicate]
- Filter a list of tuples based on condition
- How can I convert this string to list of lists? [duplicate]
- Converting string to tuple without splitting characters