earlier i had queried about how to make a matrix in this forums and i got an excellent reply in which the code for making a 2d matrix was as :
Code:
class Matrix(object): def __init__(self, rows, cols): self.rows = rows self.cols = cols # initialize matrix and fill with zeroes
Leave a comment: