I wanted to create a 2D array that would have a number in each cell. I need to access specific cells and be ablt to change them.
def print_matrix(matrix):
#just to print it nicer
for x in range(0, len(matrix)):
print(matrix[x])
matrix = []
list = []
for x in range(0,10):
list.append(0)
for x in range(0,10):
matrix.append(list)
matrix[1][2] = 9
print_matrix(matrix)