I have an array within an array, and I can call its values just fine. However, whenever I try to change the value of something in the second array it changes it for all of the arrays in the first array.
for yAxis in range(len(g.WORLD)):
    if yAxis == yPos:
        yRay = g.WORLD[yAxis]
        print("=====")
        print(yAxis)
        print(yPos)
        print("====")
        for xAxis in range(len(yRay)):
            if xAxis == xPos:
                print("-------")
                print(xAxis)
                print(xPos)
                print(yRay)
                print("-------")
                yRay[xPos] = 1 
This does the same thing
 g.WORLD[yAxis][xAxis] = 1
 
     
    