Here is what my code looks like.
outer = [] for i in range(len(finalboxes)): for j in range(len(finalboxes[i])): inner = \'\' if (len(fina