cells = [str(i) for i in range(1, 10)]
cpuletter = 'X'
print(cells)
random_index = random.randrange(len(cells))
cells[random_index] = cpuletter
print(cells)
How do I randomly select a variable from a list, and then modify it in python?