Submitted by admin on

For Loop

for loop is used for iterating over a sequence.

Loop continues until we reach the last item in the sequence

 

Nested for Loop

 loop inside a loop is called nested loop.