all = [[0,0,0,0,0]]
one = [0,0,0,0,0]
i=0
def incr(one):
global i
if (i >=5):
return
one[i]+=1
if (one[i]>=36):
one[i]=0
i+=1
incr(one)
i-=1
lol = 1
while (lol<6):
incr(one)
print (one)
all.append(one)
lol+=1
а в all попадает уже другое:
[, , , , , ]
wtf?