How This Nesting For Loop Works In Python Stack Overflow

How This Nesting For Loop Works In Python Stack Overflow