May-06-2018, 01:12 PM
Your matrix variable only stores the last row of your csv file... and I think is not what you want.
matrix = [row for row in puzzle]Will read all the rows in a list (so matrix is a list of lists)