I'm trying to make a 5x5 grid in which the player is placed in a random spot.
def board():
    grid0 = []
    grid1 = []
    a = 0
    b = 0
    while a < 5:
        grid0.append("0")
        a += 1
    while b < 5:
        grid1.append(grid0)
        b += 1
    x = list(grid1)
    x[0][0] = "x"
    for row in grid1:
        print(row)
I expect the outcome to look like this:
['X', '0', '0', '0', '0']
['0', '0', '0', '0', '0']
['0', '0', '0', '0', '0']
['0', '0', '0', '0', '0']
['0', '0', '0', '0', '0']
But instead I get this:
['x', '0', '0', '0', '0']
['x', '0', '0', '0', '0']
['x', '0', '0', '0', '0']
['x', '0', '0', '0', '0']
 
     
     
     
     
    