AE
Size: a a a
AE
MK
БГ
py3
lol= [[0]*3]*3
print(lol)
fir, sec, thr = lol
fir[0]=1
sec[1]=2
thr[2]=3
print(lol)
[[0, 0, 0], [0, 0, 0], [0, 0, 0]]
[[1, 2, 3], [1, 2, 3], [1, 2, 3]]
БГ
py3
lol= [[0]*3]*3
print(lol)
fir, sec, thr = lol
fir[0]=1
sec[1]=2
thr[2]=3
print(lol)
[[0, 0, 0], [0, 0, 0], [0, 0, 0]]
[[1, 2, 3], [1, 2, 3], [1, 2, 3]]
MK
БГ
AE
AE
БГ
AE
БГ
AE
БГ
БГ
Р
БГ
py3
lol= [[0]*3]*3
print(lol)
fir, sec, thr = lol
fir[0]=1
sec[1]=2
thr[2]=3
print(lol)
print(fir, sec, thr)
[[0, 0, 0], [0, 0, 0], [0, 0, 0]]
[[1, 2, 3], [1, 2, 3], [1, 2, 3]]
[1, 2, 3] [1, 2, 3] [1, 2, 3]
MK
БГ
БГ