I am working on a problem that requires that i create a 3x3 matrix in python using the list function. these are the functions that im required to use to create my matrix:

def mlist(size):

list = []

for i in range(size):

list = list + [None]

return list

def mmatrix(rows,cols):

matrix = mlist(rows)

for i in range(rows):

matrix[???] = mlist(???)

return ???

I have modified the functions to the point to where i get this out put:

[[None, None, None], [None, None, None], [None, None, None]]

can someone please help me figure out how to make the matrix look right?