2 D массив в Python с нулями
[ [0]*M for _ in range(N) ] #for N by M shape
Panicky Platypus
[ [0]*M for _ in range(N) ] #for N by M shape
a = [[0]*10]*10