What does 'row' in this code?
for i in range(len(work) - 2, -1, -1): row = work[i] # we can make this with enumerate also for j in range(len(work[i])): ...