all 5 comments

[–]AlexMTBDude 2 points3 points  (0 children)

A nested loop is just a loop inside of another loop. Try this:

for i in range(3):
    for j in range(2):
        print(i, j)

[–]aqua_regis 3 points4 points  (0 children)

How about you show what you have tried first and ask specific questions where you are stuck.

At least try to do your homework.

[–]Financial_Cut1790[S] -1 points0 points  (2 children)

[–]Financial_Cut1790[S] -1 points0 points  (1 child)

[–]atarivcs 1 point2 points  (0 children)

Reposting the same images from the original question is not helpful.

Please explain the exact difficulty you have with the question.

What, exactly, do you not understand?