asked 152k views
4 votes
When using for loops to iterate through (access all elements of a 2D list), the outer loop accesses the __________.

1 Answer

4 votes

Answer:

When using for loops to iterate through (access all elements of a 2D list), the outer loop accesses the iterates over the sublists of the 2D list, enabling you to conduct actions on individual rows or access specific components inside rows. The inner loop is then used to iterate through each sublist or row's items.

answered
User TallGuy
by
7.9k points