# Creating a 2-dimnesional list
grid = [[1, 2, 3],
[4, 5, 6],
[7, 8, 9]]
# Accessing elements of the list
print(grid[0][0]) # Output: 1
print(grid[1][2]) # Output: 6
print(grid[2][1]) # Output: 8
# Modifying elements of the list
grid[1][1] = 10
print(grid) # Output: [[1, 2, 3], [4, 10, 6], [7, 8, 9]]