You have to coding something by yourself.
>>> [sum(x) for x in a]
[5, 7, 5]
More Related Contents:
- User input integer list [duplicate]
- Convert all strings in a list to int
- Unsupported operand type(s) for +: ‘int’ and ‘str’ [duplicate]
- Change a string of integers separated by spaces to a list of int
- How to convert a string list into an integer in python [duplicate]
- How to convert list of intable strings to int [duplicate]
- How to test if every item in a list of type ‘int’?
- how do I make two dictionary keys with value as list [closed]
- Access a component of a list
- How to split a string into a list?
- Matrix Transpose in Python [duplicate]
- How do I find the duplicates in a list and create another list with them?
- Removing elements that have consecutive duplicates
- Removing Item From List – during iteration – what’s wrong with this idiom?
- Python list subtraction operation
- Convert bytes to int?
- Flatten list of lists [duplicate]
- Convert a list with strings all to lowercase or uppercase
- Iterate a list with indexes in Python
- Converting list of tuples into a dictionary
- List sorting with multiple attributes and mixed order
- How to merge multiple lists into one list in python? [duplicate]
- How to convert a string of space- and comma- separated numbers into a list of int? [duplicate]
- How to remove multiple items from a list in just one statement?
- How to flatten a tuple in python
- Turning a list into nested lists in python
- Python list slice syntax used for no obvious reason
- How to replace elements in a list using dictionary lookup
- Sort list while pushing None values to the end
- How to extract all values from a dictionary in Python?