def fromList(cls, listoflists):
        """ Create a matrix by directly passing a list
        of lists """

        # E.g: Matrix.fromList([[1 2 3], [4,5,6], [7,8,9]])

        rows = listoflists[:]
        return cls._makeMatrix(rows)
 Create a matrix by directly passing a list
        of lists 
recipes/Python/578131_A_simple_Matrix_class/recipe-578131.py