"""Intro to Python - Week 1 - Quiz."""


# Question 6
def matrix_sum(a_matrix):
    """Implement the code required to make this function work.

    Write a function `matrix_sum` that sums all the values in a square matrix.
    Example:

    m1 = [
        [2, 9, 1],
        [3, 1, 18],
        [22, 8, 16]
    ]
    m2 = [
      [81, 29],
      [31, 57]
    ]

    matrix_sum(m1)  #  80
    matrix_sum(m2)  # 198
    """
    # Write your code here
    pass

@@ -450,9 +450,88 @@
     
-pass
+total = 0%0A    for row in a_matrix:%0A        total += sum(row)%0A    return total      
 %0A

Update question_6.py