How do you sum up ints in a list of list in Python 3?

You have to coding something by yourself.

>>> [sum(x) for x in a]
[5, 7, 5]

Leave a Comment