I\'m trying to make Conway\'s Game of Life where the user enters how big they want the grid and which cells start off as alive. Here\'s what I have:
def firstBo
The problem is with your array initialization:
newList = myList
This isn't making a copy of myList, it's just making newList refer to myList, so then you only have one array. You can copy a 2D array like this:
myList
newList
from copy import copy, deepcopy newList = deepcopy(myList)