A document to explain nested loops with example code in Python.