class Grid:
def __init__(self, row, col, inp):
self.row = row
self.col = col
self.inp = inp
newGrid = []
newGrid.append([[0]*col]*row)
def changeGrid(self, row, col, inp):
newGrid #says it is not defined
Why cant changeGrid() access the variable newGrid?