I've written this to get a grid in python and I want to know how to change the numbers in the grid to go up like 1,2,3,4 etc... instead of all being 0
def gridSize_def():    global gridSize    while True:        try:            gridSize = int(input("input grid length and width\n"))            if gridSize<2:                print ("invalid int")            else:                break        except ValueError:            print ("invalid input")    grids = [[] for _ in range (gridSize)]    for i in range(0,gridSize):        grids[i-1]=[0 for _ in range(gridSize)]    return grids def grid_def():    for i in range (0,gridSize):        print (grids[i-1]) grids = gridSize_def() grid_def()