grid = [ ['x'] * w ] * h
grid[0[2]] = 'a'
This was a test to make a grid-like structure. The thing is, I can’t access a nested list because integers can’t be subscripted. I’ve seen problems like this but they aren’t a recalling problem. Any suggestions?
I think you may have meant:
That would take the first element in ‘grid’ (a list), and set its 3rd element (at position 2) to ‘a’