Return list of column sums. Example: [[1,2,3],[4,5,6]] => [5,7,9]
Implement this function:
def matrix_column_sums(matrix: list) -> list:
Write the function only — the arguments are read for you and the return value is printed automatically.
Arguments arrive as one Python literal per line, in this order: matrix.
Input
[[1, 2, 3], [4, 5, 6]]
Output
[5, 7, 9]