import random grid = [ [0 for row in range(10)] for col in range(10)] row = random.randint(0,9) col = random.randint(0,9) grid[row][col] =1 for row in grid: print(row) for row in range(10): for col in range(10): if grid[row][col] == 1: print("Counting from 0, treasure is at row ", row," col", col)