What is the easiest way to construct a zeros matrix with a cardinality of 1000 (row) x 10 (column) in Python without using numpy? (just the standard library)
Also, say if I get a list of values with 10 elements. say a=[1 2 3 ... 10]
, and I would like overwrite the 1st row of the zeros matrix with this list a
. How would I go about doing it.
Many thanks.
PS:
the reason that I would like to use the normal python list rather than numpy to construct the matrix is because of the requirement of this assignment, which does not allow any external libraries other than the python standard lib.