human
How can I sum a column of a list?
assistant
Here is some code to sum columns of a list `array`

[sum(row[i] for row in array) for i in range(len(array[0]))]

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.