This comes from an exercise in the M101P course-
In the brief file, attached, you see a for loop on a cursor with a nested for loop on a cursor. The outer cursor should loop 4 times, and the inner cursor should loop 4 times. 4x4 = 16. Instead, when the inner cursor completes, it seems also to close the outer cursor ??
The attachment runs self contained. Safe and easy.