Bonjour,

Le dernier code fonctionne:


x = [[0, 0, 0, 0], [0, 0, 0, 0], [0, 2, 0, 0]]
for i in range(3):
for j in range(4):
if x[2][1] == 2:
x[2][1] = 0