PONM
ABCD-7 EFGH-8 IJKL-6 MNOP-5 /||||\ 0 4123 9
BFJN
ABCD-0 EFGH-1 IJKL-2 MNOP-3 /||||\ 9 8765 4
Like put the loops here one one line and indent level: for x in range(l): for y in range(w): for z in range(h): # do stuff