def grid_counter(grid, path):
    for row, row_list in enumerate(grid):
        for collum, collum_num in enumerate(row_list):
            if (row, collum) in path:
                pass
Formatting the print of a path in 2d grid