> > def MatrixMultiply(first, second): > def sum(list): > def add(x, y): return x + y > return reduce(add, list) import operator return reduce(operator.add, list)